jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

How to judge the video loading is failed?

Open webwiki opened this issue 3 years ago • 2 comments

I need a callback to know the video loading failed or timeout. Thanks!

webwiki avatar Oct 07 '22 15:10 webwiki

News?

lucasmonstrox avatar Jul 29 '25 12:07 lucasmonstrox

This is a good first issue. PRs welcome! Should be implemented in all sources (WS, Fetch, Ajax and AjaxProgressive) right around here:

https://github.com/phoboslab/jsmpeg/blob/924acfbd96fdf15e6748d1368a36d79d8f4cecf6/src/fetch.js#L29-L37 https://github.com/phoboslab/jsmpeg/blob/924acfbd96fdf15e6748d1368a36d79d8f4cecf6/src/ajax-progressive.js#L33-L40 https://github.com/phoboslab/jsmpeg/blob/924acfbd96fdf15e6748d1368a36d79d8f4cecf6/src/ajax.js#L24-L31 https://github.com/phoboslab/jsmpeg/blob/924acfbd96fdf15e6748d1368a36d79d8f4cecf6/src/websocket.js#L63-L70

phoboslab avatar Jul 29 '25 16:07 phoboslab