mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
ec210cbe1d
This refactors the user of SegmentIterator to be more of a strict iterator and avoids the extra work of seek(). This has been moved to SegmentIndex as a getIteratorForTime() function. This makes iterators simpler and easier to understand. This also refactors StreamingEngine to only create the iterator when needed and to clear it when seeking. This also makes it easier to understand since you need to get a new position if we switch streams or seek. Fixes #2956 Closes #2970 Change-Id: If35a5d8aaba01598c526c2d70b9d9d0e305851c3