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

AbortError: The fetching process for the media resource was aborted by the user agent at the user's request. #254

Open
baharev opened this issue Apr 16, 2020 · 0 comments

Comments

@baharev
Copy link

baharev commented Apr 16, 2020

I am using SoundManager2 through react-sound. Every now and then, when I cancel the currently playing audio in Firefox, I get an:

AbortError: The fetching process for the media resource was aborted by the user agent at the user's request.

on this line of the html5Unload function:

oAudio.src = url;

Note that the comments within that function talk a lot about Firefox in particular.

It is a difficult to reproduce issue because it is flaky when this happens. Unfortunately, it happens often enough to be disturbing.

The problem is that I have difficulties catching that AbortError in react-sound.

That AbortError is probably not expected by the SoundManager2 code either: There is still clean up code below that line that will never be executed, leaving SoundManager2 in an inconsistent state.

Any help is greatly appreciated.

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

1 participant