-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
stream.getVideoTracks()[0].enabled should blank off the stream? #449
Comments
We would need to clear the texture buffer to be blank instead of last frame. Im not considering that a bug. I will see what I can do. |
Cool and thanks! Hint: In previous versions (< 5.x) the video was black when enabled was set to false. Maybe you can somehow reuse the code there. |
@derMani this part of the implementation did not change, WebRTC.framework did however, so that might be where the issue lies. Thx for input. |
I had the same problem, the stream stuck in the last frame |
Related #427 |
I have tested #427 and the video is paused when |
I may have an idea, I may disable rendering all together when enabled false. |
Hey @hthetiot, any update on this? ❤️ |
lol nope @oscarvadillog |
@hthetiot Is there any update on this? |
Expected behavior
getVideoTracks()[0].enabled = false
should blank off the screen (just sending a black image). Ideal for muting the camera.
Same behavior can be seen with webrtc in chrome
Observed behavior
getVideoTracks()[0].enabled = false
just pauses/freezes the screen. The last video frame can be seen
Steps to reproduce the problem
Create a stream with getUserMedia and attach it to a video element
Set
stream.getVideoTracks()[0].enabled
to false
Platform information
The text was updated successfully, but these errors were encountered: