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

When audio is false there is not audio in the MediaStream from the Webcam #395

Open
3 tasks done
markVaykhansky opened this issue Jan 1, 2024 · 1 comment
Open
3 tasks done

Comments

@markVaykhansky
Copy link

markVaykhansky commented Jan 1, 2024

Please follow the general troubleshooting steps first:

Bug reports:

Not sure if this is intended or not.

Use case: We want a webcam with an audio stream to record but it shouldn't playback the audio.

When I set audio prop to false in order to mute the Webcam it also disables the audio stream of the WebCam's MediaStream.
There should not be coupling between the two.

I belive that removing the if statement on line 278 in react-webcam.tsx should do the trick.

@mozmorris
Copy link
Owner

<Webcam muted={true} audio /> should do the trick.

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

No branches or pull requests

2 participants