-
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
v1.4.0-beta regression gap controller jumps large gaps #5360
Comments
Hi @mtoczko, In this case is there a GAP tag or no loadable media at 105? Is this reproducible in streams without GAP tags? First thing to try is to clear out any gap fragments from the fragmentTracker on seeking. My guess is that if we don't do this with your test stream the player will not not error->switch to find bufferable fragments and encounter a stall situation that it determines it should jump because of all the tracked gaps. |
Hi @robwalch We should probably clear the buffer when we seek.
hls.js/src/controller/gap-controller.ts Lines 260 to 263 in 0a6956b
if ((startTime + SKIP_BUFFER_RANGE_START) - (currentTime + SKIP_BUFFER_HOLE_STEP_SECONDS) > backBufferLength )
return 0 |
I noticed one undesirable action:
gap-controller.ts:264 [warn] > skipping hole, adjusting currentTime from 105.275674 to 170.05533300000002
To reproduce the issue, you need to watch the entire video and seek to 105.
"backBufferLength": 90
08b938f3.hls-js-dev.pages.dev-1680185898252.log
Originally posted by @mtoczko in #2940 (comment)
The text was updated successfully, but these errors were encountered: