Skip to content

Skip pre-populated media sections on React Native#1984

Merged
davidliu merged 2 commits into
mainfrom
dl/rn_single_peer_pc_fix
Jun 23, 2026
Merged

Skip pre-populated media sections on React Native#1984
davidliu merged 2 commits into
mainfrom
dl/rn_single_peer_pc_fix

Conversation

@davidliu

@davidliu davidliu commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #1981, #1977

Summary

Native libwebrtc (used by React Native WebRTC) doesn't support adding media sections before the initial publisher offer the way browser WebRTC does (see livekit/rust-sdks#1151), so this change disables it entirely.

Test plan

  • React Native (single-PC, default) — Connect to a room, publish camera + mic, subscribe to remote audio/video (in that order); confirm tracks attach and play in both directions
  • React Native (single-PC, default) — Connect to a room with preexisting publishers, subscribe to remote audio/video (in that order); confirm tracks attach and play in both directions
  • React Native data channels — Send/receive chat or other data messages after connect
  • Remote participant reconnect — App does not crash when remote participant reconnects
  • Reconnection — Disconnect and reconnect (or trigger network drop); confirm tracks recover

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a05c23e

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 100.77 KB (+0.05% 🔺)
dist/livekit-client.umd.js 109.62 KB (-0.09% 🔽)

@davidliu davidliu merged commit 04f352d into main Jun 23, 2026
7 checks passed
@davidliu davidliu deleted the dl/rn_single_peer_pc_fix branch June 23, 2026 11:28
@github-actions github-actions Bot mentioned this pull request Jun 23, 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.19.2 regression: remote agent audio level / multiband volume empty for BarVisualizer (TrackReference); 2.19.1 OK

2 participants