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

Calling webcam functions results in multiple browser prompts for access in chrome #17

Open
DanielKoohmarey opened this issue Feb 28, 2021 · 0 comments · May be fixed by #18
Open

Calling webcam functions results in multiple browser prompts for access in chrome #17

DanielKoohmarey opened this issue Feb 28, 2021 · 0 comments · May be fixed by #18

Comments

@DanielKoohmarey
Copy link

DanielKoohmarey commented Feb 28, 2021

Calling webcam.start with default args of stream = true, the stream call results in two separate prompts to the user to allow access to the webcam in Chrome. Is there a way to request permissions from the user only once for the lifetime of the webcam object? This is the result of the navigator.mediaDevices.getUserMedia(this.getMediaConstraints()) call in both functions. In the stream function the this._streamList should be checked, and if not empty, simply use the existing stream object.

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 a pull request may close this issue.

1 participant