Bläddra i källkod

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

dev1
hristoterezov 9 år sedan
förälder
incheckning
8a087c01b3
5 ändrade filer med 25 tillägg och 12 borttagningar
  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 Visa fil

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

+ 4
- 0
JitsiConferenceEvents.js Visa fil

88
      * Indicates that start muted settings changed.
88
      * Indicates that start muted settings changed.
89
      */
89
      */
90
     START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
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
      * Indicates that DTMF support changed.
96
      * Indicates that DTMF support changed.
93
      */
97
      */

+ 1
- 0
doc/API.md Visa fil

91
         - CONFERENCE_FAILED - notifies that user failed to join the conference. (parameters - errorCode(JitsiMeetJS.errors.conference))
91
         - CONFERENCE_FAILED - notifies that user failed to join the conference. (parameters - errorCode(JitsiMeetJS.errors.conference))
92
         - KICKED - notifies that user has been kicked from the conference.
92
         - KICKED - notifies that user has been kicked from the conference.
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))
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
     2. connection
96
     2. connection
96
         - CONNECTION_FAILED - indicates that the server connection failed.
97
         - CONNECTION_FAILED - indicates that the server connection failed.

+ 6
- 0
lib-jitsi-meet.js Visa fil

833
                     track.mute();
833
                     track.mute();
834
                 }
834
                 }
835
             });
835
             });
836
+
837
+            conference.eventEmitter.emit(JitsiConferenceEvents.STARTED_MUTED);
836
         });
838
         });
837
 
839
 
838
     conference.room.addPresenceListener("startmuted", function (data, from) {
840
     conference.room.addPresenceListener("startmuted", function (data, from) {
1027
      * Indicates that start muted settings changed.
1029
      * Indicates that start muted settings changed.
1028
      */
1030
      */
1029
     START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
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
      * Indicates that DTMF support changed.
1037
      * Indicates that DTMF support changed.
1032
      */
1038
      */

+ 12
- 12
lib-jitsi-meet.min.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Laddar…
Avbryt
Spara