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

Set encodedInsertableStreams also for reconnect response #921

Merged
merged 6 commits into from
Nov 2, 2023

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Nov 2, 2023

chrome would throw a DOM exception Failed to execute 'setConfiguration' on 'RTCPeerConnection': Attempted to modify the PeerConnection's configuration in an unsupported way if setConfiguration doesn't include the encodedInsertableStrams option when updated at a later time and when it was initially present when setting up the PC.
This caused reconnects to fail when e2ee is enabled.
This PR moves setting the option into makeRTCConfiguration in order to also set it on the reconnect response if e2ee is enabled.

Copy link

changeset-bot bot commented Nov 2, 2023

🦋 Changeset detected

Latest commit: de2bbdd

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

@lukasIO lukasIO requested a review from davidzhao November 2, 2023 15:49
Copy link
Contributor

github-actions bot commented Nov 2, 2023

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 77.11 KB (-0.01% 🔽)
dist/livekit-client.umd.js 82.65 KB (+0.02% 🔺)

@lukasIO lukasIO merged commit c3e4055 into main Nov 2, 2023
2 checks passed
@lukasIO lukasIO deleted the lukas/fix-e2ee-reconnect branch November 2, 2023 16:38
@github-actions github-actions bot mentioned this pull request Nov 2, 2023
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.

2 participants