Skip to content

Commit

Permalink
fix(SDP) Add the recvonly SSRC check only on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
jallamsetty1 committed Jan 9, 2025
1 parent 496b64a commit dc8b557
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/sdp/SDP.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default class SDP {
const isRecvOnly = SDPUtil.findLine(mediaItem, `a=${MediaDirection.RECVONLY}`);

// Do not process recvonly m-lines. Firefox generates recvonly SSRCs for all remote sources.
if (isRecvOnly) {
if (isRecvOnly && browser.isFirefox()) {
return;
}

Expand Down Expand Up @@ -647,7 +647,7 @@ export default class SDP {
continue;
}

if (ssrc && !isRecvOnly) {
if (ssrc && !(isRecvOnly && browser.isFirefox())) {
const description = $(content).find('description');
const ssrcMap = SDPUtil.parseSSRC(mediaItem);

Expand Down Expand Up @@ -736,7 +736,7 @@ export default class SDP {
elem.up();
});

if (ssrc && !isRecvOnly) {
if (ssrc && !(isRecvOnly && browser.isFirefox())) {
const ssrcMap = SDPUtil.parseSSRC(mediaItem);

for (const [ availableSsrc, ssrcParameters ] of ssrcMap) {
Expand Down

0 comments on commit dc8b557

Please sign in to comment.