Browse Source

Introduces new config ignoreStartMuted, ignores start muted option. (#428)

Ignores start audio/video muted requests received by jicofo.
dev1
Дамян Минков 8 years ago
parent
commit
4083e5d641
2 changed files with 5 additions and 0 deletions
  1. 4
    0
      JitsiConferenceEventManager.js
  2. 1
    0
      doc/API.md

+ 4
- 0
JitsiConferenceEventManager.js View File

591
 
591
 
592
     conference.xmpp.addListener(XMPPEvents.START_MUTED_FROM_FOCUS,
592
     conference.xmpp.addListener(XMPPEvents.START_MUTED_FROM_FOCUS,
593
         (audioMuted, videoMuted) => {
593
         (audioMuted, videoMuted) => {
594
+            if (conference.options.config.ignoreStartMuted) {
595
+                return;
596
+            }
597
+
594
             conference.startAudioMuted = audioMuted;
598
             conference.startAudioMuted = audioMuted;
595
             conference.startVideoMuted = videoMuted;
599
             conference.startVideoMuted = videoMuted;
596
 
600
 

+ 1
- 0
doc/API.md View File

223
         4. callStatsID - callstats credentials
223
         4. callStatsID - callstats credentials
224
         5. callStatsSecret - callstats credentials
224
         5. callStatsSecret - callstats credentials
225
         6. enableTalkWhileMuted - boolean property. Enables/disables talk while muted detection, by default the value is false/disabled.
225
         6. enableTalkWhileMuted - boolean property. Enables/disables talk while muted detection, by default the value is false/disabled.
226
+        7. ignoreStartMuted - ignores start muted events coming from jicofo. 
226
         **NOTE: if 4 and 5 are set the library is going to send events to callstats. Otherwise the callstats integration will be disabled.**
227
         **NOTE: if 4 and 5 are set the library is going to send events to callstats. Otherwise the callstats integration will be disabled.**
227
 
228
 
228
 5. addEventListener(event, listener) - Subscribes the passed listener to the event.
229
 5. addEventListener(event, listener) - Subscribes the passed listener to the event.

Loading…
Cancel
Save