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

Pass on error event #48

Closed
wants to merge 1 commit into from
Closed

Pass on error event #48

wants to merge 1 commit into from

Conversation

pors
Copy link
Contributor

@pors pors commented Apr 8, 2016

The audio element onerror event was not passed on to the react-player onError method. This PR fixes that. This makes it possible to inspect the actual error: Event > srcElement:audio > error:MediaError > code [1,4]

Error codes can be found here: https://dev.w3.org/html5/spec-preview/media-elements.html#error-codes

This fixes #44

@cookpete
Copy link
Owner

I've been working on a more thorough fix for onError but if this helps you for now there's no reason not to merge it.

Could you remove the dist files from the commit? They are only there for bower and are automatically built and added to the repo when versioning.

@cookpete
Copy link
Owner

Also @pors, could you also add a "Fixes #44" to the commit notes? So that auto-changelog will pick it up for the change log.

@pors
Copy link
Contributor Author

pors commented Apr 13, 2016

@cookpete all should be good now.

cookpete added a commit that referenced this pull request Apr 13, 2016
@cookpete
Copy link
Owner

Merged this manually just to tidy up the commit message a bit. Nice work!

@cookpete cookpete closed this Apr 13, 2016
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.

onError called without error message
2 participants