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
HLS Live Playback: Segment Gaps when Seeking Forward after Pause #3767
Comments
Not sure what's going on here but may be related to I'm not sure exactly how to reproduce this based on the description. Can you provide one primary use case, including a stream and hls.js config, with ordered steps to reproduce the issue? |
Thanks, I got something now to test. Here are the steps:
I've seen different effects: Sometimes hangs/gaps and sometimes short phases of super-fast videos Please let me know whether you can reproduce. |
Are you able to reproduce? There are certain specifics to MPEGTS streams from tv broadcasts:
Here are the initial segment durations from the provided sample stream:
|
The 400ms gap between audio and video sounds like what we have in this sample: I took a look at the sample stream provided again on latest: I still see some audio gaps on occasion, but the recent backtracking improvements appear to be kicking in and loading SN-1 since now we recognize that keyframes are not always present at the start of a segment, so we load the previous one preemptively. How does the behavior look to you now @softworkz ? |
From a first glance, it appears to be fixed. Great work! Thanks a lot for looking into this. |
I'm experiencing the following issue when playing live playlists:
Segment merging/stitching appears to be inaccurate when segments aren't played immediately (e.g. after pausing).
Two scenarios, the first one works fine, the second one produces issues:
1. Playing at the Live Edge, then seeking backward
=> Can seek to arbitrary (earlier) positions, playback always working flawlessly
2. Pausing Playback for a while, then seeking forward
After playing for a while, I pause and wait until no more segments are downloaded, then I wait an additional 2 or 3 minutes, then resume playback
=> When seeking to past positions, playback is working flawlessly like above
=> But when seeking to positions newer than the pause position, hlsjs starts to encounter "holes" in the stream frequently and hangs for a short moment each time:
Environment
I've tried many different combinations of the variants above. The strength of the symptoms varies from extremely annoying to hardly noticeable, but they are always there.
At this time, I don't have a useful conclusion..
The text was updated successfully, but these errors were encountered: