Skip to content

fix: keep the last publisher transceiver of each kind - #2284

Merged
lukasIO merged 1 commit into
mainfrom
fix/keep-transceiver-per-kind
Nov 19, 2026
Merged

lukasIO merged 1 commit into
mainfrom
fix/keep-transceiver-per-kind

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

After #2282, a republish of camera and microphone still fails in Safari 26. setRemoteDescription rejects the answer with Failed to set recv parameters for m-section with mid='3'. setE2EEEnabled(false) takes this path, because it republishes all tracks. Chrome and Firefox do not fail.

The cause is a change of header extension ids. The data channel section keeps the transport, so the guard of #2282 lets the client stop both transceivers. These browsers then give the next transceivers new ids: sdes:mid moves from 9 to 4, and transport-wide-cc from 4 to 3. The server keeps one id table per connection and answers with the first ids. Id 4 then means two extensions in one section. Chrome keeps the first ids for the new transceivers.

Change

PCTransport.stopTransceivers keeps the last live transceiver of each kind, audio and video. A live section keeps its ids, as before #2249. The publisher connection holds at most one inactive audio transceiver and one inactive video transceiver.

This rule replaces the rule of #2282. One live transceiver also keeps the transport, so the data channel count is gone.

🤖 Generated with Claude Code

After a stop of all media transceivers, some browsers give the next
transceiver new header extension ids. The server keeps the first ids of
the connection, and the browser rejects its answer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@lukasIO lukasIO self-assigned this Nov 17, 2026
@changeset-bot

changeset-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5078e70

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

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 117.23 KB (-0.01% 🔽)
dist/livekit-client.umd.js 126.59 KB (-0.08% 🔽)
dist/core/core.mjs 79.62 KB (-0.07% 🔽)

@lukasIO
lukasIO marked this pull request as ready for review November 17, 2026 09:00

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@lukasIO
lukasIO merged commit 9da7df6 into main Nov 19, 2026
8 of 9 checks passed
@lukasIO
lukasIO deleted the fix/keep-transceiver-per-kind branch November 19, 2026 09:42
@github-actions github-actions Bot mentioned this pull request Nov 19, 2026
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