bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten

Home Page:https://brooke.vibber.net/misc/ogv.js/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught (in promise) AbortError: Aborted

rtman opened this issue · comments

commented

Hi,

I'm getting an uncaught promise error when setting the src key to the url of the audio file. This is happening in chrome, safari and firefox (on firefox it crashes the app completely, but the others tolerate this). The file still plays though i do notice a delay of a second or two (compared to almost no delay with html5 audio). Not sure if the delay is related.

Screen Shot 2020-12-10 at 5 27 47 PM

Screen Shot 2020-12-10 at 5 29 14 PM

I believe this is due to a failure to properly catch the special AbortError type used to cancel the request -- for instance if you load an Ogg file with no index, it will cancel the original download request shortly into parsing it in order to seek to the end of the file looking for the last timestamp before seeking back.

I'll keep in mind for cleanup work; this should be caught and should not be visible on the console, though it's harmless.