on-internet
← Community

videojs with hls plugin: how to limit retries

Stack Overflow ·

I use videojs and videojs-contrib-hls to play video in my website. When a video's m3u8 file is loaded successfully and the broswer failed to get one of the ts file, videojs will retry over and over again, with log like this: GET https://[my ts file url] 404(Not Found) VIDEOJS: WARN: Problem encountered with the current HLS playlist. Trying again since it is the final playlist. I want to listen to the error event and limit the retry. Which event(on the player or .tech().hls) should I listen to?

Comments

Sign in or sign up to comment and upvote.

No comments yet.