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

Remove internal calls to setCodecPreferences on sender transceivers #1114

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 23, 2024

As recent issues with Chrome 124 arose, we remove all calls to setCodecPreferences on publish transceivers and let the server dictate the selected codec by order hierarchy.
This is in accordance with the spec, as setCodecPreferences is meant to be a receiver only setting, see here

Copy link

changeset-bot bot commented Apr 23, 2024

🦋 Changeset detected

Latest commit: 8181050

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Apr 23, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 78.88 KB (+0.23% 🔺)
dist/livekit-client.umd.js 84.5 KB (+0.25% 🔺)

@lukasIO lukasIO requested review from davidzhao and boks1971 April 23, 2024 12:15
Copy link
Contributor

@boks1971 boks1971 left a comment

Choose a reason for hiding this comment

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

LGTM! Is there anything to remove from sample app?

@lukasIO lukasIO changed the title Remove internal calls to setCodecPreferences on senders Remove internal calls to setCodecPreferences on transceivers Apr 23, 2024
@lukasIO lukasIO changed the title Remove internal calls to setCodecPreferences on transceivers Remove internal calls to setCodecPreferences on sender transceivers Apr 23, 2024
@lukasIO
Copy link
Contributor Author

lukasIO commented Apr 23, 2024

Is there anything to remove from sample app?

not that I'm aware of, selecting a preferred codec client side will still work, but merely by signalling the preferred codec to the server instead of trying to set it on the transceiver.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

nice! love it when deleting code makes it work better!

@lukasIO lukasIO merged commit 4318954 into main Apr 24, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/remove-setcodepref branch April 24, 2024 06:47
@github-actions github-actions bot mentioned this pull request Apr 24, 2024
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