-
Notifications
You must be signed in to change notification settings - Fork 166
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
LocalTrack debounced mute not reset when setting new track #935
Comments
Hi @davideberlein, Curious how you are muting the local track. The |
This sort of thing happens when you're streaming from a I think the muting is some 'weird' side effect of the canvas' stream. It triggers a 'muted' event as soon as it doesn't receive any paint events for a short amount of time anymore and triggers an 'unmuted' event once you start painting into it again. We had our issues when using OpenTok before LiveKit as well. At some point in time they stopped handling the mute/unmute events when providing a video track off of a canvas. - In your case I think simply resetting the the debounce should be fine. |
I see, that makes sense, thanks for the context! |
closed via #936 |
Describe the bug
When muting the
MediaTrack
which was previously added to aLocalTrack
and then replacing theMediaTrack
usingLocalTrack.replaceTrack()
with a track which is not muted, the new track is muted after the debounce timeout.The reason is, that the timeout isn't reset when setting the new track.
Reproduction
Steps to reproduce
LocalTrack.replaceTrack()
with a new active (not muted) trackExpectation:
The new track continues to play
Actual
The new track is muted after a couple of seconds (after the mute debounce timeout is reached)
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
I'll open a MR with a suggestion of a fix
The text was updated successfully, but these errors were encountered: