Pārlūkot izejas kodu

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

Ignores start audio/video muted requests received by jicofo.
dev1
Дамян Минков 8 gadus atpakaļ
vecāks
revīzija
4083e5d641
2 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 4
    0
      JitsiConferenceEventManager.js
  2. 1
    0
      doc/API.md

+ 4
- 0
JitsiConferenceEventManager.js Parādīt failu

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

+ 1
- 0
doc/API.md Parādīt failu

@@ -223,6 +223,7 @@ This objects represents the server connection. You can create new ```JitsiConnec
223 223
         4. callStatsID - callstats credentials
224 224
         5. callStatsSecret - callstats credentials
225 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 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 229
 5. addEventListener(event, listener) - Subscribes the passed listener to the event.

Notiek ielāde…
Atcelt
Saglabāt