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
Frequent warnings on playback start #3933
Comments
Any idea why the playlist is refreshed 6 times at start without updating? That would have happened before we got here, and at this point, the method |
Ah, that's probably due to the fact that I'm delaying/blocking the request for the first segment until data is available (= tuning into a channel at the server side). This can take between 300ms and 3-5 seconds. |
Could this also be the reason for the other issue I'm seeing: #3928 ? |
I really don't know about your particular use-case or if this is directly related to your other issue. I doubt it, at least with respect to the logging. I've done some cleanup and removed the warning in #3967. What you should see instead is clearer You can take it for a spin here: |
Thanks Rob, looks good. I'll try shortly (but I can't use the online demo with my local environment, so I'll need to pull/rebase first).
Could you perhaps hint me at the right place(s) where I can block the processing of hlsjs until the first data has arrived (from the first segment request)? |
Block what processing exactly? Playlist reloading (see level-controller and The components of HLS.js operate independently and in response to events, timers, API methods, and configuration. |
I mean everything that is related to timing - not the video timestamps, but what is used to control hlsjs operation. Playlist can be reloaded as many times as it wants to do - as long as that doesn't trigger anything else. The result should - ideally - be as if the time while waiting until the first byte of the first segment arrives wouldn't have existed. :-) |
PS: I'm testing your PR right now |
I can confirm that your PR fixes the reported issue. Thanks again for your great work 👍 |
I'm frequently getting these warnings logged when starting playback:
The warning is emitted in method alignPlaylists:
hls.js/src/controller/base-stream-controller.ts
Lines 1046 to 1056 in a586139
Is that expected to happen? And what is supposed to be "aligned" in that situation?
There's just a single media playlist and when that method is called,
details
andpreviousDetails
are exactly the same.Thanks
The text was updated successfully, but these errors were encountered: