Commit 3f2eb9d7 by sungsoo Committed by Ian Baker

Refactor ComponentListener of PlayerWrapper

PiperOrigin-RevId: 343432873
parent 305ec3b4
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
* Text * Text
* Allow tx3g subtitles with `styl` boxes with start and/or end offsets * Allow tx3g subtitles with `styl` boxes with start and/or end offsets
that lie outside the length of the cue text. that lie outside the length of the cue text.
* Media2 extension:
* Notify onBufferingEnded when the state of origin player becomes
STATE_IDLE or STATE_ENDED.
### 2.12.1 (2020-10-23) ### ### 2.12.1 (2020-10-23) ###
......
...@@ -826,7 +826,6 @@ public class SessionPlayerConnectorTest { ...@@ -826,7 +826,6 @@ public class SessionPlayerConnectorTest {
} }
} }
}); });
sessionPlayerConnector.setPlaylist(playlistToSessionPlayer, /* metadata= */ null);
InstrumentationRegistry.getInstrumentation() InstrumentationRegistry.getInstrumentation()
.runOnMainSync(() -> playerTestRule.getSimpleExoPlayer().setMediaItems(exoMediaItems)); .runOnMainSync(() -> playerTestRule.getSimpleExoPlayer().setMediaItems(exoMediaItems));
assertThat(onPlaylistChangedLatch.await(PLAYLIST_CHANGE_WAIT_TIME_MS, MILLISECONDS)).isTrue(); assertThat(onPlaylistChangedLatch.await(PLAYLIST_CHANGE_WAIT_TIME_MS, MILLISECONDS)).isTrue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment