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

fix video attach to incorrect element when transceiver reuse #427

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

cnderrauber
Copy link
Contributor

@cnderrauber cnderrauber commented Sep 7, 2022

When MediaStreamTrack been removed from MediaStream ,we emit event before setTrack, cause ui received unsubscribed event to render the participant. But the RemoteTrack holds a stale MediaStreamTrack, when transceiver reuse involved, the MediaStreamTrack might be added to other participant's MediaStream, that cause video track has been attached to incorrect element. If this participant don't have any subsequent track events fired, then ui don't have chance to render the correct track. This cause the video chaos issue on my local cluster kill node test

@changeset-bot
Copy link

changeset-bot bot commented Sep 7, 2022

🦋 Changeset detected

Latest commit: 8a40b67

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

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

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

great find!

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.

really good fix!

@cnderrauber cnderrauber merged commit c477b77 into main Sep 8, 2022
@cnderrauber cnderrauber deleted the settrack branch September 8, 2022 01:44
@github-actions github-actions bot mentioned this pull request Sep 8, 2022
max-b pushed a commit to Invisv-Privacy/client-sdk-js that referenced this pull request Oct 4, 2022
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