mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
d4a1255235
Thumbnail segments may be structured for a certain grid size and duration, but the segment references may have their duration truncated due to the end of a period or the end of the presentation. This was causing us to calculate the wrong duration for those individual thumbnails, and therefore return the wrong thumbnail. We also did not have any way to indicate to an application how long a thumbnail should be shown. This fixes the duration calculation by retaining the original, untruncated duration in SegmentReference. This also exposes startTime and duration information on the Thumbnail object, so that applications know when/where and how long to show a given thumbnail. Closes #3517 Change-Id: I84aa7705a19691fc6ae68eee9944fecbd7067fe0