Fix DASH duration.
As multi period DASH isn't supported yet use the duration of the first period only. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127086808
This commit is contained in:
parent
4e86c55361
commit
464869cf57
@ -277,7 +277,7 @@ public final class DashMediaSource implements MediaPeriod, MediaSource,
|
||||
manifestUri = manifest.location;
|
||||
}
|
||||
if (!prepared) {
|
||||
durationUs = manifest.dynamic ? C.UNSET_TIME_US : manifest.duration * 1000;
|
||||
durationUs = manifest.dynamic ? C.UNSET_TIME_US : manifest.getPeriodDuration(0) * 1000;
|
||||
buildTrackGroups(manifest);
|
||||
if (manifest.utcTiming != null) {
|
||||
resolveUtcTimingElement(manifest.utcTiming);
|
||||
|
Loading…
x
Reference in New Issue
Block a user