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
b9c9775745
commit
a39e6790c9
@ -1011,8 +1011,13 @@ public final class DashMediaSource extends BaseMediaSource {
|
|||||||
windowDurationUs / 2);
|
windowDurationUs / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
long windowStartTimeMs = manifest.availabilityStartTimeMs
|
long windowStartTimeMs = C.TIME_UNSET;
|
||||||
+ manifest.getPeriod(0).startMs + C.usToMs(currentStartTimeUs);
|
if (manifest.availabilityStartTimeMs != C.TIME_UNSET) {
|
||||||
|
windowStartTimeMs =
|
||||||
|
manifest.availabilityStartTimeMs
|
||||||
|
+ manifest.getPeriod(0).startMs
|
||||||
|
+ C.usToMs(currentStartTimeUs);
|
||||||
|
}
|
||||||
DashTimeline timeline =
|
DashTimeline timeline =
|
||||||
new DashTimeline(
|
new DashTimeline(
|
||||||
manifest.availabilityStartTimeMs,
|
manifest.availabilityStartTimeMs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user