Browse Source

fix: Only advertise opus-red if the browser supports it.

dev1
Boris Grozev 5 years ago
parent
commit
4a98a10630
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js View File

150
         if (!this.options.disableRtx) {
150
         if (!this.options.disableRtx) {
151
             this.caps.addFeature('urn:ietf:rfc:4588');
151
             this.caps.addFeature('urn:ietf:rfc:4588');
152
         }
152
         }
153
-        if (this.options.enableOpusRed === true) {
153
+        if (this.options.enableOpusRed === true && browser.supportsAudioRed()) {
154
             this.caps.addFeature('http://jitsi.org/opus-red');
154
             this.caps.addFeature('http://jitsi.org/opus-red');
155
         }
155
         }
156
 
156
 

Loading…
Cancel
Save