mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00: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
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Reference in a new issue