mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Fix bug where C.TIME_UNSET was used for calcutations.
The presentationTimeOffsetMs may be C.TIME_UNSET for VOD content and shouldn't be used in calculations for the windowStartTime. PiperOrigin-RevId: 285363095
This commit is contained in:
parent
5bead4acbb
commit
53d30d80a5
1 changed files with 7 additions and 2 deletions
|
|
@ -1010,8 +1010,13 @@ public final class DashMediaSource extends BaseMediaSource {
|
|||
windowDurationUs / 2);
|
||||
}
|
||||
}
|
||||
long windowStartTimeMs = manifest.availabilityStartTimeMs
|
||||
+ manifest.getPeriod(0).startMs + C.usToMs(currentStartTimeUs);
|
||||
long windowStartTimeMs = C.TIME_UNSET;
|
||||
if (manifest.availabilityStartTimeMs != C.TIME_UNSET) {
|
||||
windowStartTimeMs =
|
||||
manifest.availabilityStartTimeMs
|
||||
+ manifest.getPeriod(0).startMs
|
||||
+ C.usToMs(currentStartTimeUs);
|
||||
}
|
||||
DashTimeline timeline =
|
||||
new DashTimeline(
|
||||
manifest.availabilityStartTimeMs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue