videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
38.11k stars 7.46k forks source link

Seeking in HLS streams - Excessive main segment downloading detected #7992

Open frofrik opened 2 years ago

frofrik commented 2 years ago

Description

We have a lot of HLS streams that are between 1-5 hours. On some of them, when trying to seek forward more than the first hour, the player will load for a while, and then throwing an error. The exact time stamp is different for different streams. In the provided Codepen example you can seek until aproax 01:40:00, but trying to get more forward the error will appear.

VIDEOJS: WARN: Problem encountered with playlist 1-index_2.m3u8. Excessive main segment downloading detected. Switching to playlist 0-index_1.m3u8. VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists.

We do have some HLS streams that work without errors, and I cannot really figure out what the difference is. Any help on this issue would be much appreciated.

Reduced test case

https://codepen.io/fredrikstarck/pen/abKZoBE

Steps to reproduce

  1. Play the HLS stream
  2. Jump forward more than 01:40:00
  3. Wait while the player tries to load and then gets an error.

Errors

VIDEOJS: WARN: Problem encountered with playlist 1-index_2.m3u8. Excessive main segment downloading detected. Switching to playlist 0-index_1.m3u8. VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists.

What version of Video.js are you using?

7.20.3

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Chrome 107

What OS(es) and version(s) does this occur with?

MacOS Monterey (12.0.1)

welcome[bot] commented 2 years ago

πŸ‘‹ Thanks for opening your first issue here! πŸ‘‹

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

huangqiangqiang commented 1 year ago

I have a similar problem

I found when i seek after 1:40:00, videojs will load same ts file multiple times, i don't understand why.

https://equisport-website.s3-eu-west-1.amazonaws.com/vod/7671/index.m3u8 I can play this m3u8 normally after 1:40:00 on other players.

video-archivist-bot commented 1 year ago

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands: