mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
b0238c3c00
As part of Period-flattening, I'm trying to reduce our dependence on the "position" field of SegmentReference. If it can be eliminated, we can more easily concatenate Arrays of SegmentReferences without modifying them. The HLS parser uses positions to find previously-resolved segment times when refreshing a live playlist. What we're really doing is using HLS media sequence numbers, since we use those to assign the segment positions in the first place. This change makes the use of media sequence numbers more explicit, and adds a per-Stream map from media sequence number to segment start time. The only other users of segment positions are StreamingEngine and various tests. Issue #1339 (period-flattening) Change-Id: If970ed2c8722ed5779a51349ca2e64208d78130d