瀏覽代碼

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

master
Boris Grozev 4 年之前
父節點
當前提交
4a98a10630
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js 查看文件

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…
取消
儲存