MaskingMediaSource needs to resolve the prepare position set for a MaskingPeriod while the source was still unprepared to the first actual prepare position. It currently assumes that the period-window offset and the default position is zero. This assumption is correct when a PlaceholderTimeline is used, but it may not be true if the real timeline is already known (e.g. when re-preparing a live stream after a playback error). Fix this by using the known timeline at the time of the preparation. Also: - Update a test that should have caught this to use lazy re-preparation. - Change the demo app code to use the recommended way to restart playback after a BehindLiveWindowException. Issue: #8675 PiperOrigin-RevId: 361604191
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| truth | Loading commit data... | |
| Action.java | Loading commit data... | |
| ActionSchedule.java | Loading commit data... | |
| AdditionalFailureInfo.java | Loading commit data... | |
| AutoAdvancingFakeClock.java | Loading commit data... | |
| CacheAsserts.java | Loading commit data... | |
| CapturingAudioSink.java | Loading commit data... | |
| CapturingRenderersFactory.java | Loading commit data... | |
| DataSourceContractTest.java | Loading commit data... | |
| DecoderCountersUtil.java | Loading commit data... | |
| DefaultRenderersFactoryAsserts.java | Loading commit data... | |
| DownloadBuilder.java | Loading commit data... | |
| DummyMainThread.java | Loading commit data... | |
| DumpFileAsserts.java | Loading commit data... | |
| DumpableFormat.java | Loading commit data... | |
| Dumper.java | Loading commit data... | |
| ExoHostedTest.java | Loading commit data... | |
| ExoPlayerTestRunner.java | Loading commit data... | |
| ExtractorAsserts.java | Loading commit data... | |
| FailOnCloseDataSink.java | Loading commit data... | |
| FakeAdaptiveDataSet.java | Loading commit data... | |
| FakeAdaptiveMediaPeriod.java | Loading commit data... | |
| FakeAdaptiveMediaSource.java | Loading commit data... | |
| FakeAudioRenderer.java | Loading commit data... | |
| FakeChunkSource.java | Loading commit data... | |
| FakeClock.java | Loading commit data... | |
| FakeDataSet.java | Loading commit data... | |
| FakeDataSource.java | Loading commit data... | |
| FakeExoMediaDrm.java | Loading commit data... | |
| FakeExtractorInput.java | Loading commit data... | |
| FakeExtractorOutput.java | Loading commit data... | |
| FakeMediaChunk.java | Loading commit data... | |
| FakeMediaChunkIterator.java | Loading commit data... | |
| FakeMediaClockRenderer.java | Loading commit data... | |
| FakeMediaPeriod.java | Loading commit data... | |
| FakeMediaSource.java | Loading commit data... | |
| FakeRenderer.java | Loading commit data... | |
| FakeSampleStream.java | Loading commit data... | |
| FakeShuffleOrder.java | Loading commit data... | |
| FakeTimeline.java | Loading commit data... | |
| FakeTrackOutput.java | Loading commit data... | |
| FakeTrackSelection.java | Loading commit data... | |
| FakeTrackSelector.java | Loading commit data... | |
| FakeVideoRenderer.java | Loading commit data... | |
| HostActivity.java | Loading commit data... | |
| HttpDataSourceTestEnv.java | Loading commit data... | |
| MediaPeriodAsserts.java | Loading commit data... | |
| MediaSourceTestRunner.java | Loading commit data... | |
| NoUidTimeline.java | Loading commit data... | |
| StubExoPlayer.java | Loading commit data... | |
| TestExoPlayerBuilder.java | Loading commit data... | |
| TestUtil.java | Loading commit data... | |
| TimelineAsserts.java | Loading commit data... | |
| WebServerDispatcher.java | Loading commit data... | |
| package-info.java | Loading commit data... |