How to judge the video loading is failed?
I need a callback to know the video loading failed or timeout. Thanks!
News?
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