mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
ca3119dfba
Before, segment timestamps were used in PresentationTimeline without regard for the period start. This means they were not truly relative to the presentation, but to the period. The "isFirstPeriod" argument was also broken. It was meant to be true for segments from the first period *ever*, but was passed true for the first period *in the latest manifest update*. So data calculated from that was bogus for live streams. Now, notifySegments() is supplied with a period start time, so that segment references can be combined with the period start to give presentation timestamps. This fixes a major issue with the original fix for #999. Closes #999 Change-Id: Id0fe450f3ce4f90a2387d7103c75eb88f0c69c72