Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codec renegotiation and reverse the order of the ssrcs being signaled from Firefox to Jicofo. #1719

Merged
merged 2 commits into from
Sep 20, 2021

Conversation

jallamsetty1
Copy link
Member

Impose VP9 bitrates only when VP9 is negotiated. If Jicofo doesn't offer VP9 but the client expresses a preference for VP9, VP9 bitrates were being imposed before.
This fixes an issue where the bridge doesn't forward the HD stream from Firefox to other users in the call. The order of the ssrcs produced by the browser is from Highest resolution to lowest whereas the bridge assumes it to be from lowest to highest as is the case with Chrome and Safari.

…ated codec.

If Jicofo doesn't offer VP9 but the client expresses a preference for VP9, VP9 bitrates were being imposed before.
if (browser.isFirefox() && simGroup) {
// Use the first ssrc from the SIM group since the order of the SSRCs need to be reversed for Firefox.
ssrc = simGroup.substring(17).split(' ')[0];
}
ssrc = assrcline.substring(7).split(' ')[0]; // take the first
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need an else here? It looks like the second ssrc assignment overrides the first.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♀️ I thought I did that but wonder how the test I ran was showing the correct ssrcs in the signaling ..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JonathanLennox fixed it.

This fixes an issue where the bridge doesn't forward the HD stream from Firefox to other users in the call. The order of the ssrcs produced by the browser is from Highest resolution to lowest whereas the bridge assumes it to be from lowest to highest as is the case in Chrome and Safari.
@jallamsetty1 jallamsetty1 merged commit 69604b9 into jitsi:master Sep 20, 2021
@jallamsetty1 jallamsetty1 deleted the fix-codeco-renegotiaiton branch September 20, 2021 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants