Skip to content

Commit

Permalink
fix(codecs) Continue to munge SDP for p2p codec.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jallamsetty1 committed Jun 27, 2024
1 parent 6bcc577 commit 1993a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/xmpp/JingleSessionPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export default class JingleSessionPC extends JingleSession {
pcOptions.codecSettings = options.codecSettings;
pcOptions.enableInsertableStreams = options.enableInsertableStreams;
pcOptions.usesCodecSelectionAPI = this.usesCodecSelectionAPI
= browser.supportsCodecSelectionAPI() && options.testing?.enableCodecSelectionAPI;
= browser.supportsCodecSelectionAPI() && options.testing?.enableCodecSelectionAPI && !this.isP2P;

if (options.videoQuality) {
const settings = Object.entries(options.videoQuality)
Expand Down

0 comments on commit 1993a03

Please sign in to comment.