You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a fatal error occurs, as in the example above, I want the hls.recoveryMediaError() method to run. However, after initializing the ovenplayer, I could not find how to access this method. Is there a way to solve?
hls.on(Hls.Events.ERROR,function(event,data){if(data.fatal){switch(data.type){caseHls.ErrorTypes.MEDIA_ERROR:
console.log('fatal media error encountered, try to recover');hls.recoverMediaError();break;caseHls.ErrorTypes.NETWORK_ERROR:
console.error('fatal network error encountered',data);// All retries and media options have been exhausted.// Immediately trying to restart loading could cause loop loading.// Consider modifying loading policies to best fit your asset and network// conditions (manifestLoadPolicy, playlistLoadPolicy, fragLoadPolicy).break;default:
// cannot recoverhls.destroy();break;}}});
The text was updated successfully, but these errors were encountered:
Currently, when a fatal error occurs in Hls.js, OvenPlayer raise an error event. And you can't recover playback unless you call ovenplayer.load() again or recreate the player.
So, calling hls.recoverMediaError() when a fatal media error occurs is not yet supported. It seems difficult to support it right away because OvenPlayer's HLS error handling policy needs to be changed.
We will let you know again when various error handling becomes possible.
https://github.com/video-dev/hls.js/blob/master/docs/API.md#fatal-error-recovery
When a fatal error occurs, as in the example above, I want the hls.recoveryMediaError() method to run. However, after initializing the ovenplayer, I could not find how to access this method. Is there a way to solve?
The text was updated successfully, but these errors were encountered: