Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Mar 12, 2025

for tracks where subscription fails to to a lack of permissions, we might receive a track added on the PC while still connecting.
Currently we queue that update to fire after the room fully connected, however by deferring the event we miss removing it on ended events.
This PR checks for the mediastreamtrack's readystate before processing the deferred update to make sure we only add active tracks.

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2025

🦋 Changeset detected

Latest commit: 2c46762

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
Contributor

github-actions bot commented Mar 12, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 90.53 KB (+0.03% 🔺)
dist/livekit-client.umd.js 98.2 KB (+0.03% 🔺)

@lukasIO lukasIO requested review from bcherry and davidzhao March 21, 2025 10:01
@lukasIO lukasIO merged commit db162f3 into main Mar 21, 2025
6 checks passed
@lukasIO lukasIO deleted the lukas/skip-ended-ontrack branch March 21, 2025 16:36
@github-actions github-actions bot mentioned this pull request Mar 21, 2025
svajunas-budrys pushed a commit to svajunas-budrys/client-sdk-js that referenced this pull request Jun 17, 2025
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