Browse Source

fix(codecs) Continue to munge SDP for p2p codec.

We need the initial invite/answer to have the codecs in the correct order so codec selection API for selecting codecs is not useful in this case.
release-8443
Jaya Allamsetty 1 year ago
parent
commit
1993a03022
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/JingleSessionPC.js

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

@@ -401,7 +401,7 @@ export default class JingleSessionPC extends JingleSession {
401 401
         pcOptions.codecSettings = options.codecSettings;
402 402
         pcOptions.enableInsertableStreams = options.enableInsertableStreams;
403 403
         pcOptions.usesCodecSelectionAPI = this.usesCodecSelectionAPI
404
-            = browser.supportsCodecSelectionAPI() && options.testing?.enableCodecSelectionAPI;
404
+            = browser.supportsCodecSelectionAPI() && options.testing?.enableCodecSelectionAPI && !this.isP2P;
405 405
 
406 406
         if (options.videoQuality) {
407 407
             const settings = Object.entries(options.videoQuality)

Loading…
Cancel
Save