Browse Source

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é 9 years ago
parent
commit
dd262248d9
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      modules/RTC/JitsiLocalTrack.js

+ 1
- 2
modules/RTC/JitsiLocalTrack.js View File

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…
Cancel
Save