-
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
BufferStalledError at the beginning of the video #4975
Comments
Starting at |
adding "maxBufferHole": 2.5, to the config seems to work for a quick and dirty fix. |
I find you need to set maxFragLookUpTolerance too In controller::stream-controller.ts::seekToStartPos the delta (between audio and video) is ~2 secs if you force the config maxBufferHole and maxFragLookUpTolerance to accommodate then yes it plays back no problem Whilst the stream could be better - I tried a bunch of other players and it plays back, so I guess it should be fixed in hls.js |
(should add this is not a regression, much older versions also fail similarly) |
For a fix, we could use the fragment-tracker state in gap-controller to determine that the start segments were appended (or wait for them if in-flight). Then, since there is no hope to fill the gap, seek on play ignoring the gap/lookup config options. (not seeking while paused or onload is intentional as it can interfere with video analytics or the expectation while paused even if autoplay flag is present and prevented because of the buffer gap). If someone else wants to give this a go I'm happy to review. v1.3-v1.5 issues and PRs with milestones are higher priority for me at this time since there are config workarounds and the content is malformed. |
I'm having the same issue but the error message is |
@mkrn please file a new issue. |
What version of Hls.js are you using?
1.2.4
What browser (including version) are you using?
Chrome 106.0.5249.119 (Official Build) (arm64)
What OS (including version) are you using?
macOS 12.1
Test stream
https://stream.mux.com/rpNd0200OCjQ1TAqUOCwZEFiIK02PLeBEGcoGG015EMVBac.m3u8
Configuration
Additional player setup steps
No response
Checklist
Steps to reproduce
Expected behaviour
The playback should start when the play button is pressed
What actually happened?
The playback never starts
Console output
Chrome media internals output
The text was updated successfully, but these errors were encountered: