-
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
Question about playlists alignment based on discontinuity counter #4416
Comments
I think the real problem is in
This method should find any match between two fragments that start the same discontinuity sequence. It would also make sense for it to return a number when it finds a match, or null when unsuccessful. |
Changed to enhancement. Will escalate to Bug if given steps to repro. |
It looks like we made improvements to hls.js/src/utils/discontinuities.ts Lines 170 to 179 in 7c7c39f
But we don't do the same in |
@hongfeih-es would you bring the |
What do you want to do with Hls.js?
We noticed sometimes playback will be stalled when play ssai stream (with several discontinuities), and it normally happened when switching levels during ad breaks.
What have you tried so far?
Checked the code, findDiscontinuousReferenceFrag try to find first segment with same cc of of the first frag of the new level:
hls.js/src/utils/discontinuities.ts
Lines 39 to 60 in feab619
But I think it's wrong.
For example,
findDiscontinuousReferenceFrag
will find first segment of mockReferenceFrags, which isstart: 20,
, and new playlist will be adjusted to :which is wrong, it should be:
I think start segment of next break (cc+1) should be used to align playlists between levels, like:
Any comment? Thanks.
The text was updated successfully, but these errors were encountered: