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

How to capture 404 error for audio source in function onloaderror #1514

Closed
srvshrm opened this issue Sep 8, 2021 · 0 comments
Closed

How to capture 404 error for audio source in function onloaderror #1514

srvshrm opened this issue Sep 8, 2021 · 0 comments

Comments

@srvshrm
Copy link

srvshrm commented Sep 8, 2021

Since, Onloaderror Function only returns below error codes:

1 - The fetching process for the media resource was aborted by the user agent at the user's request.
2 - A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.
3 - An error of some description occured while decoding the media resource, after the resource was established to be usable.
4 - The media resource indicated by the src attribute or assigned media provider object was not suitable.

It is sometime not clear from the error codes if source is missing (404), is there any way to capture the 404 error for the audio source.

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

No branches or pull requests

2 participants