Explorar el Código

Adds event that is fired when the local user have started muted

tags/v0.0.2
hristoterezov hace 9 años
padre
commit
8a087c01b3
Se han modificado 5 ficheros con 25 adiciones y 12 borrados
  1. 2
    0
      JitsiConference.js
  2. 4
    0
      JitsiConferenceEvents.js
  3. 1
    0
      doc/API.md
  4. 6
    0
      lib-jitsi-meet.js
  5. 12
    12
      lib-jitsi-meet.min.js

+ 2
- 0
JitsiConference.js Ver fichero

@@ -831,6 +831,8 @@ function setupListeners(conference) {
831 831
                     track.mute();
832 832
                 }
833 833
             });
834
+
835
+            conference.eventEmitter.emit(JitsiConferenceEvents.STARTED_MUTED);
834 836
         });
835 837
 
836 838
     conference.room.addPresenceListener("startmuted", function (data, from) {

+ 4
- 0
JitsiConferenceEvents.js Ver fichero

@@ -88,6 +88,10 @@ var JitsiConferenceEvents = {
88 88
      * Indicates that start muted settings changed.
89 89
      */
90 90
     START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
91
+    /**
92
+     * Indicates that the local user has started muted.
93
+     */
94
+    STARTED_MUTED: "conference.started_muted",
91 95
     /**
92 96
      * Indicates that DTMF support changed.
93 97
      */

+ 1
- 0
doc/API.md Ver fichero

@@ -91,6 +91,7 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
91 91
         - CONFERENCE_FAILED - notifies that user failed to join the conference. (parameters - errorCode(JitsiMeetJS.errors.conference))
92 92
         - KICKED - notifies that user has been kicked from the conference.
93 93
         - START_MUTED_POLICY_CHANGED - notifies that all new participants will join with muted audio/video stream (parameters - JS object with 2 properties - audio(boolean), video(boolean))
94
+        - STARTED_MUTED - notifies that the local user has started muted
94 95
 
95 96
     2. connection
96 97
         - CONNECTION_FAILED - indicates that the server connection failed.

+ 6
- 0
lib-jitsi-meet.js Ver fichero

@@ -833,6 +833,8 @@ function setupListeners(conference) {
833 833
                     track.mute();
834 834
                 }
835 835
             });
836
+
837
+            conference.eventEmitter.emit(JitsiConferenceEvents.STARTED_MUTED);
836 838
         });
837 839
 
838 840
     conference.room.addPresenceListener("startmuted", function (data, from) {
@@ -1027,6 +1029,10 @@ var JitsiConferenceEvents = {
1027 1029
      * Indicates that start muted settings changed.
1028 1030
      */
1029 1031
     START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
1032
+    /**
1033
+     * Indicates that the local user has started muted.
1034
+     */
1035
+    STARTED_MUTED: "conference.started_muted",
1030 1036
     /**
1031 1037
      * Indicates that DTMF support changed.
1032 1038
      */

+ 12
- 12
lib-jitsi-meet.min.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Loading…
Cancelar
Guardar