So I've got a web app that uses the webcam to take photos. It's used by our staff who are not very technical. A frequent issue that occurs is they will accidentally open two windows with the app. I made the page display the console in the webpage, but with all the other information that is displayed in the console, they often won't notice the error, and also the error isn't clear what it means. The error is:
NotReadableError: Could not start video source
Is there a way to watch for this error, and display an HTML element (I'm thinking a hovering red bar over the video area) that explains that the camera is being used by another window/browser/tab.
any information would be a huge help.