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

Correct track replacement when resuming local track upstream #1157

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

kyleparrott
Copy link
Contributor

Currently if a track processor is applied to a video track while the track's upstream is paused (ie. pauseUpstream() has been called on it), the next call to resume upstream will replace the processed track with the plain, unprocessed track. This should correct that logic and prevent this incorrect replacement.

My app was performing the following steps when I ran into this behavior:

  1. Publish a video track to the room with no processors applied
  2. Pause the local video track's upstream
  3. Apply a Track processor to the local track
  4. Resume the local video track's upstream

I am pausing and resuming the track when I am making processor changes to prevent showing any "flashes" of unprocessed frames when changing between virtual background options.

- This should prevent replacing the processed track with the unprocessed
  track, if a track processor was applied while the track upstream was
  paused.
Copy link

changeset-bot bot commented Jun 7, 2024

🦋 Changeset detected

Latest commit: dda287b

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.

Nice, thanks for catching this!

@lukasIO lukasIO merged commit 161e98d into livekit:main Jun 13, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Jun 13, 2024
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