mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ public final class DashMediaSource implements MediaPeriod, MediaSource,
|
||||||
manifestUri = manifest.location;
|
manifestUri = manifest.location;
|
||||||
}
|
}
|
||||||
if (!prepared) {
|
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);
|
buildTrackGroups(manifest);
|
||||||
if (manifest.utcTiming != null) {
|
if (manifest.utcTiming != null) {
|
||||||
resolveUtcTimingElement(manifest.utcTiming);
|
resolveUtcTimingElement(manifest.utcTiming);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue