Browse Source

feat: expose MEETING_ID_SET event (#1484)

* expose meeting-id-set event

* typo
dev1
Andrei Gavrilescu 4 years ago
parent
commit
479dd989a0
No account linked to committer's email address
3 changed files with 9 additions and 0 deletions
  1. 3
    0
      JitsiConferenceEventManager.js
  2. 5
    0
      JitsiConferenceEvents.js
  3. 1
    0
      doc/API.md

+ 3
- 0
JitsiConferenceEventManager.js View File

117
     this.chatRoomForwarder.forward(XMPPEvents.MUC_JOINED,
117
     this.chatRoomForwarder.forward(XMPPEvents.MUC_JOINED,
118
         JitsiConferenceEvents.CONFERENCE_JOINED);
118
         JitsiConferenceEvents.CONFERENCE_JOINED);
119
 
119
 
120
+    this.chatRoomForwarder.forward(XMPPEvents.MEETING_ID_SET,
121
+        JitsiConferenceEvents.CONFERENCE_UNIQUE_ID_SET);
122
+
120
     // send some analytics events
123
     // send some analytics events
121
     chatRoom.addListener(XMPPEvents.MUC_JOINED,
124
     chatRoom.addListener(XMPPEvents.MUC_JOINED,
122
         () => {
125
         () => {

+ 5
- 0
JitsiConferenceEvents.js View File

41
  */
41
  */
42
 export const CONFERENCE_LEFT = 'conference.left';
42
 export const CONFERENCE_LEFT = 'conference.left';
43
 
43
 
44
+/**
45
+ * Indicates that the conference unique identifier has been set.
46
+ */
47
+export const CONFERENCE_UNIQUE_ID_SET = 'conference.unique_id_set';
48
+
44
 /**
49
 /**
45
  * Indicates that the connection to the conference has been established
50
  * Indicates that the connection to the conference has been established
46
  * XXX This is currently fired whenVthe *ICE* connection enters 'connected'
51
  * XXX This is currently fired whenVthe *ICE* connection enters 'connected'

+ 1
- 0
doc/API.md View File

123
         - `LAST_N_ENDPOINTS_CHANGED` - last n set was changed (parameters - leavingEndpointIds(array) ids of users leaving lastN, enteringEndpointIds(array) ids of users entering lastN)
123
         - `LAST_N_ENDPOINTS_CHANGED` - last n set was changed (parameters - leavingEndpointIds(array) ids of users leaving lastN, enteringEndpointIds(array) ids of users entering lastN)
124
         - `CONFERENCE_JOINED` - notifies the local user that he joined the conference successfully. (no parameters)
124
         - `CONFERENCE_JOINED` - notifies the local user that he joined the conference successfully. (no parameters)
125
         - `CONFERENCE_LEFT` - notifies the local user that he left the conference successfully. (no parameters)
125
         - `CONFERENCE_LEFT` - notifies the local user that he left the conference successfully. (no parameters)
126
+        - `CONFERENCE_UNIQUE_ID_SET` - notifies the local user that the unique id for a meeting has been set. (parameters - meetingId(string))
126
         - `DTMF_SUPPORT_CHANGED` - notifies if at least one user supports DTMF. (parameters - supports(boolean))
127
         - `DTMF_SUPPORT_CHANGED` - notifies if at least one user supports DTMF. (parameters - supports(boolean))
127
         - `USER_ROLE_CHANGED` - notifies that role of some user changed. (parameters - id(string), role(string))
128
         - `USER_ROLE_CHANGED` - notifies that role of some user changed. (parameters - id(string), role(string))
128
         - `USER_STATUS_CHANGED` - notifies that status of some user changed. (parameters - id(string), status(string))
129
         - `USER_STATUS_CHANGED` - notifies that status of some user changed. (parameters - id(string), status(string))

Loading…
Cancel
Save