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

Propagate video.play() NotSupportedError #259

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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