-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Playback freezes when seeking back to time with EXT-X-GAPs #6814
Comments
Hi @luryus, Sorry for for the delay in responding. I was able to reproduce the issue. It looks like the gap-controller is exiting here, waiting for more to load: hls.js/src/controller/gap-controller.ts Lines 315 to 335 in 8d1dbf7
however, the stream-controller is not loading more. It is exiting here: hls.js/src/controller/stream-controller.ts Lines 302 to 304 in 8d1dbf7
because this code is no reporting the buffer length as required. This needs some work as it should not report buffered length if there are non-gap segments between the target position and the next buffered range: hls.js/src/controller/base-stream-controller.ts Lines 1185 to 1195 in 8d1dbf7
|
What version of Hls.js are you using?
1.5.17
What browser (including version) are you using?
Chrome 130.0.6723.70, Firefox 131.0.3
What OS (including version) are you using?
Windows 11 23H2
Test stream
https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fgist.githubusercontent.com%2Fluryus%2Ff54bc840dbe29e69a07b43ca93d0eec9%2Fraw%2F752c23978cf885a36b1675f85cd42615057c5360%2Fbunny_gaps.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==
Configuration
Additional player setup steps
No response
Checklist
Steps to reproduce
See this screen capture:
screencap.mp4
Expected behaviour
The player skips forward to the segment after the gap, and continues playback.
We're trying to use
EXT-X-GAP
s to "fill" the playlist in case there are short outages in the video source (e.g. a camera reboot). Basically a similar use case to that in issue #6518 . Is this even the right approach here, or should we do something different instead on the server side?What actually happened?
The playback stalls when seeking to a time with gaps. This issue happens on both Chrome and Firefox. Safari on macOS works fine.
Console output
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: