Determine the segment to load by looking at buffered
When playlists are not segment-aligned or began at different times, we could make bad decisions about which segment to load by just incrementing the media index. Instead, annotate segments in the playlist with timeline information as they are downloaded. When a decision about what segment to fetch is required, simply try to fetch the segment that lines up with the latest edge of the buffered time range that contains the current time. Add a utility to stringify TextRanges for debugging. This is a checkpoint commit; 35 tests are currently failing in Chrome.
Showing
4 changed files
with
71 additions
and
152 deletions
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment