You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just a question, not a bug report. Hope that's OK.
Whenever a new playlist is loaded (for a live HLS stream), the first segment is always given time 0 and the last segment is given the correct time for that window. But the next time a playlist is loaded, it would be nice if the first segment in the new window took the sequence into account such that its start time is not zero.
By "sequence," I meant the value at EXT-X-MEDIA-SEQUENCE in the playlist.
As an example:
Load m3u8 at time t.
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE: 1000
segment[0] has start time of 0
Load m3u8 at time t+delta.
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE: 1001
segment[0] has start time of 10
The text was updated successfully, but these errors were encountered:
Track #87. Something similar is done in that line of work.
As a note, what you suggest is not that easy. That I know of, there is no restriction over the duration of the chunks except that they are shorter than the target duration of the media playlist. So, multiplying is not an option. Not generally, at least. And this is assuming you load every playlist at the start of playback. Ideally, you wouldn't load a playlist until you need it, but even if not, you might be loading a playlist that has drifted from the other one. Note also that sequence numbers need not be aligned.
To sum up, wait for live window seeking support. We do something relatively similar to what you ask. Thanks for the suggestion!
Yeah, the reason I asked is because I hacked together a quasi-solution for seeking live events, but I haven't been able to account for the sequence variance yet. My use-case is quite simple, so I'll probably just store the previous sequence somewhere and ensure that and future segments take that into account when computing their start time.
This is just a question, not a bug report. Hope that's OK.
Whenever a new playlist is loaded (for a live HLS stream), the first segment is always given time 0 and the last segment is given the correct time for that window. But the next time a playlist is loaded, it would be nice if the first segment in the new window took the sequence into account such that its start time is not zero.
By "sequence," I meant the value at EXT-X-MEDIA-SEQUENCE in the playlist.
As an example:
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE: 1000
segment[0] has start time of 0
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE: 1001
segment[0] has start time of 10
The text was updated successfully, but these errors were encountered: