mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Partialy revert "Make ExtractorMediaSource timeline dynamic until duration is set"
This change broke playback through playlists. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176764830
This commit is contained in:
parent
874d1be852
commit
5d70b9e02d
1 changed files with 2 additions and 4 deletions
|
|
@ -327,11 +327,9 @@ public final class ExtractorMediaSource implements MediaSource, ExtractorMediaPe
|
||||||
private void notifySourceInfoRefreshed(long durationUs, boolean isSeekable) {
|
private void notifySourceInfoRefreshed(long durationUs, boolean isSeekable) {
|
||||||
timelineDurationUs = durationUs;
|
timelineDurationUs = durationUs;
|
||||||
timelineIsSeekable = isSeekable;
|
timelineIsSeekable = isSeekable;
|
||||||
// If the duration is currently unset, we expect to be able to update the window when its
|
// TODO: Make timeline dynamic until its duration is known. This is non-trivial. See b/69703223.
|
||||||
// duration eventually becomes known.
|
|
||||||
boolean isDynamic = timelineDurationUs == C.TIME_UNSET;
|
|
||||||
sourceListener.onSourceInfoRefreshed(this,
|
sourceListener.onSourceInfoRefreshed(this,
|
||||||
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, isDynamic), null);
|
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, false), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue