Skip to content

Conversation

@Klathmon
Copy link

A NotSupportedError sometimes gets thrown and in debugging why I noticed that Quagga is causing an unhandled rejection error here because it doesn't catch and propagate the NotSupportedError when video.play() is called on a video element that doesn't have a supported source (the cause of that NotSupportedError is completely unrelated to this PR).

This is a small PR that fixes that, and wraps the reject('Unable to play video stream. Is webcam working?') near the top of the file in an error object so it works better with our application logging and gives us a full stack-trace when it happens.

@kristate
Copy link
Collaborator

Thank-you for your Patch!

We have forked the project and are accepting Pull Requests here:
https://github.com/NeraiCorp/getUserBarcode

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 this pull request may close these issues.

2 participants