mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove unused CapturingRenderersFactory
from DASH playback test
The `CapturingRenderersFactory` is only needed if the output is asserted on, e.g. by using `PlaybackOutput` and `DumpFileAsserts.assertOutput()`. PiperOrigin-RevId: 686046545
This commit is contained in:
parent
0b47e93df5
commit
cb90bb38ee
@ -408,8 +408,6 @@ public final class DashPlaybackTest {
|
|||||||
@Test
|
@Test
|
||||||
public void playVideo_usingWithinGopSampleDependencies_withSeekAfterEoS() throws Exception {
|
public void playVideo_usingWithinGopSampleDependencies_withSeekAfterEoS() throws Exception {
|
||||||
Context applicationContext = ApplicationProvider.getApplicationContext();
|
Context applicationContext = ApplicationProvider.getApplicationContext();
|
||||||
CapturingRenderersFactory capturingRenderersFactory =
|
|
||||||
new CapturingRenderersFactory(applicationContext);
|
|
||||||
BundledChunkExtractor.Factory chunkExtractorFactory =
|
BundledChunkExtractor.Factory chunkExtractorFactory =
|
||||||
new BundledChunkExtractor.Factory().experimentalParseWithinGopSampleDependencies(true);
|
new BundledChunkExtractor.Factory().experimentalParseWithinGopSampleDependencies(true);
|
||||||
DataSource.Factory defaultDataSourceFactory = new DefaultDataSource.Factory(applicationContext);
|
DataSource.Factory defaultDataSourceFactory = new DefaultDataSource.Factory(applicationContext);
|
||||||
@ -419,7 +417,7 @@ public final class DashPlaybackTest {
|
|||||||
chunkExtractorFactory, defaultDataSourceFactory, /* maxSegmentsPerLoad= */ 1),
|
chunkExtractorFactory, defaultDataSourceFactory, /* maxSegmentsPerLoad= */ 1),
|
||||||
/* manifestDataSourceFactory= */ defaultDataSourceFactory);
|
/* manifestDataSourceFactory= */ defaultDataSourceFactory);
|
||||||
ExoPlayer player =
|
ExoPlayer player =
|
||||||
new ExoPlayer.Builder(applicationContext, capturingRenderersFactory)
|
new ExoPlayer.Builder(applicationContext)
|
||||||
.setMediaSourceFactory(dashMediaSourceFactory)
|
.setMediaSourceFactory(dashMediaSourceFactory)
|
||||||
.setClock(new FakeClock(/* isAutoAdvancing= */ true))
|
.setClock(new FakeClock(/* isAutoAdvancing= */ true))
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user