mirror of
https://github.com/samsonjs/media.git
synced 2026-04-10 12:05:47 +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) {
|
||||
timelineDurationUs = durationUs;
|
||||
timelineIsSeekable = isSeekable;
|
||||
// If the duration is currently unset, we expect to be able to update the window when its
|
||||
// duration eventually becomes known.
|
||||
boolean isDynamic = timelineDurationUs == C.TIME_UNSET;
|
||||
// TODO: Make timeline dynamic until its duration is known. This is non-trivial. See b/69703223.
|
||||
sourceListener.onSourceInfoRefreshed(this,
|
||||
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, isDynamic), null);
|
||||
new SinglePeriodTimeline(timelineDurationUs, timelineIsSeekable, false), null);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue