Explorar el Código

fix: remove unneeded test when muting a local stream

Some runtimes such as React Native don't have a window.location.protocol
property, so don't check for it, assume removeStream is available.
dev1
Saúl Ibarra Corretgé hace 9 años
padre
commit
dd262248d9
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      modules/RTC/JitsiLocalTrack.js

+ 1
- 2
modules/RTC/JitsiLocalTrack.js Ver fichero

286
     this.dontFireRemoveEvent = false;
286
     this.dontFireRemoveEvent = false;
287
 
287
 
288
     // FIXME FF does not support 'removeStream' method used to mute
288
     // FIXME FF does not support 'removeStream' method used to mute
289
-    if (window.location.protocol !== "https:" ||
290
-        this.isAudioTrack() ||
289
+    if (this.isAudioTrack() ||
291
         this.videoType === VideoType.DESKTOP ||
290
         this.videoType === VideoType.DESKTOP ||
292
         RTCBrowserType.isFirefox()) {
291
         RTCBrowserType.isFirefox()) {
293
         if(this.track)
292
         if(this.track)

Loading…
Cancelar
Guardar