-
Notifications
You must be signed in to change notification settings - Fork 56
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
Retry the video in case of Network error #26
Comments
@avinlakhera I had a similar issue. After looking at the code, it seems that all hls.js events are broadcasted to the tech component (https://github.com/Peer5/videojs-contrib-hls.js/blob/master/src/videojs5.hlsjs.js#L96): player.tech_.on('manifestLoadError', function () {
// do something...
}); Full list with error events thrown by hls.js - hls.js errors (hls.js API) |
@ganigeorgiev I'm unable to trigger any of the error handlers on |
@hoodsy Oops, probably I didn't check the exact event error in my previous comment or something has changed from the last time I used it. Looking back at the code (Line #100) only Hls Runtime Events are broadcasted. To handle the error you could listen to jsfiddle example - https://jsfiddle.net/m3sf8nav/ |
Great, thanks!
…On Dec 13, 2017 10:22 AM, "Gani Georgiev" ***@***.***> wrote:
@hoodsy <https://github.com/hoodsy> Oops, probably I didn't check the
exact event error in my previous comment or something has changed from the
last time I used it.
Looking back at the code (Line #100
<https://github.com/Peer5/videojs-contrib-hls.js/blob/master/src/videojs.hlsjs.js#L100>)
only Hls Runtime Events
<https://github.com/video-dev/hls.js/blob/master/doc/API.md#runtime-events>
are broadcasted. To handle the error you could listen to Hls.Events.ERROR
and check its type (or other error data specific property).
jsfiddle example - https://jsfiddle.net/m3sf8nav/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEQrunncNiR5oNkJgpD3_kPXPal8od0Mks5s_-uggaJpZM4N8doV>
.
|
Hi,
How can i retry for the video when I gets network error. I have tried to get error using
But this one doesn't catch any error even though I am getting 404 error in console.
Any suggestion for this one
Thanks,
The text was updated successfully, but these errors were encountered: