mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
c13830e535
SegmentReference used to have presentationTimeOffset, which, subtracted from the period start time, was then _added_ to the timestamps in the segment by MediaSource. Now, SegmentReference has a timestampOffset field, which is exactly what MediaSource's timestampOffset field is set to on the SourceBuffer before this segment is appended. For DASH, this is periodStart minus presentationTimeOffset. This also adds append window start & end times to the SegmentReference. Now segments can be appended to SourceBuffers without reference to the period. Note that start & end times of the SegmentReference in each segment index are still relative to the period. This will change in a follow-up. Issue #1339 (flatten periods) Issue #892 (refactor StreamingEngine) Change-Id: I9d54eb2b529ec643c9475b8e9d218c3e2e826a26