-
Notifications
You must be signed in to change notification settings - Fork 26
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
Segment index is 1 more than media sequence in playlist #204
Comments
Yes, the segment index in the URL is one-based, so it is greater than the media sequence by 1. But, the URL can be anything the server desires, the player must not make any assumptions on the URL structure. So it's fine to have a number greater by 1 or 1000, or having no number at all (for example, in some past project, we encrypted the segment URLs, and in that case, the segment index wasn't visible at all). |
yes, but media engine APIs also reporting segment index greater by 1, I'm doing some post processing with playlists, and I'm using API endpoints to get current segment for some events on the channel and then I need to find these segments in playlist, and it is not suitable that media sequence number in playlist and segment index are not the same number |
And also in the settings there is some confusion between segment index and media sequence number:
but really first segment index will not be same as set in maybe better to name this setting |
Hello, per RFC HTTP Live Streaming 2nd Edition,
#EXT-X-MEDIA-SEQUENCE sets sequence number for first segment, example from the RFC
but in media framework media sequence of first segment on 1 bigger:
here seg-1714957237-s1080-v.m4s has 1714957236 media sequence,
and should be named as seg-1714957236-s1080-v.m4s then,
it is not big deal, but this might be misleading
UPD: And it is not just naming, segment indexes gotten from media framework API endpoints have same numbers as in segment names, which don't add up with #EXT-X-MEDIA-SEQUENCE in a playlist.
So if you want to somehow post-process playlists you should aware about it. It would be better if segment indexes and media sequences were the same numbers.
The text was updated successfully, but these errors were encountered: