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

Turn off camera lights after disabling awareness #29

Open
mattborghi opened this issue Feb 10, 2022 · 0 comments
Open

Turn off camera lights after disabling awareness #29

mattborghi opened this issue Feb 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mattborghi
Copy link

When awareness is disabled, camera lights shouild be off. In order to resolve this we can:

Our implementation is already coded but it's not working as expected

if (videoMeRef.current) {
if (videoMeRef.current.srcObject) {
const tracks = (videoMeRef.current.srcObject as MediaStream).getTracks();
tracks.forEach((track) => track.stop());
}
}
};

@mattborghi mattborghi added the bug Something isn't working label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant