Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

DOMException on page reload #108

Open
luke-z opened this issue Jul 10, 2020 · 0 comments
Open

DOMException on page reload #108

luke-z opened this issue Jul 10, 2020 · 0 comments

Comments

@luke-z
Copy link

luke-z commented Jul 10, 2020

Hi there

I've been experimenting with your app and found an issue.

On reloading the page with my notebook, it returned an exception (DOMException: Could not start video source).

After trying a few things, I figured out the problem.
On my notebook, it tried to access the IR camera and thus somehow couldn't free it up afterwards.

I solved it by adding
&& !device.label.includes('IR')
to the if statement mentioned below.

Maybe there's another way to solve it.

Best regards
Luke

if (device.kind == 'videoinput') {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant