Ver código fonte

feat: expose MEETING_ID_SET event (#1484)

* expose meeting-id-set event

* typo
dev1
Andrei Gavrilescu 4 anos atrás
pai
commit
479dd989a0
Nenhuma conta vinculada ao e-mail do autor do commit
3 arquivos alterados com 9 adições e 0 exclusões
  1. 3
    0
      JitsiConferenceEventManager.js
  2. 5
    0
      JitsiConferenceEvents.js
  3. 1
    0
      doc/API.md

+ 3
- 0
JitsiConferenceEventManager.js Ver arquivo

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

+ 5
- 0
JitsiConferenceEvents.js Ver arquivo

@@ -41,6 +41,11 @@ export const CONFERENCE_JOINED = 'conference.joined';
41 41
  */
42 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 50
  * Indicates that the connection to the conference has been established
46 51
  * XXX This is currently fired whenVthe *ICE* connection enters 'connected'

+ 1
- 0
doc/API.md Ver arquivo

@@ -123,6 +123,7 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
123 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 124
         - `CONFERENCE_JOINED` - notifies the local user that he joined the conference successfully. (no parameters)
125 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 127
         - `DTMF_SUPPORT_CHANGED` - notifies if at least one user supports DTMF. (parameters - supports(boolean))
127 128
         - `USER_ROLE_CHANGED` - notifies that role of some user changed. (parameters - id(string), role(string))
128 129
         - `USER_STATUS_CHANGED` - notifies that status of some user changed. (parameters - id(string), status(string))

Carregando…
Cancelar
Salvar