mirror of
https://github.com/androidx/media.git
synced 2025-05-15 19:49:50 +08:00
Simplify disabling renderers in ExoPlayerTest
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191901120
This commit is contained in:
parent
03a36ce6ba
commit
75338530ef
@ -726,13 +726,7 @@ public final class ExoPlayerTest {
|
|||||||
new ActionSchedule.Builder("testChangeTrackSelection")
|
new ActionSchedule.Builder("testChangeTrackSelection")
|
||||||
.pause()
|
.pause()
|
||||||
.waitForPlaybackState(Player.STATE_READY)
|
.waitForPlaybackState(Player.STATE_READY)
|
||||||
.executeRunnable(
|
.disableRenderer(0)
|
||||||
new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
trackSelector.setRendererDisabled(0, true);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.play()
|
.play()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@ -773,13 +767,7 @@ public final class ExoPlayerTest {
|
|||||||
new ActionSchedule.Builder("testReuseTrackSelection")
|
new ActionSchedule.Builder("testReuseTrackSelection")
|
||||||
.pause()
|
.pause()
|
||||||
.waitForPlaybackState(Player.STATE_READY)
|
.waitForPlaybackState(Player.STATE_READY)
|
||||||
.executeRunnable(
|
.disableRenderer(0)
|
||||||
new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
trackSelector.setRendererDisabled(0, true);
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.play()
|
.play()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user