Port of #1493. Closes #2478.

This commit is contained in:
Eran Hammer 2022-06-23 13:31:34 -07:00 committed by GitHub
parent 5120cd9360
commit f800776508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -956,6 +956,7 @@ class ReactExoplayerView extends FrameLayout implements
int playbackState = player.getPlaybackState(); int playbackState = player.getPlaybackState();
boolean playWhenReady = player.getPlayWhenReady(); boolean playWhenReady = player.getPlayWhenReady();
String text = "onStateChanged: playWhenReady=" + playWhenReady + ", playbackState="; String text = "onStateChanged: playWhenReady=" + playWhenReady + ", playbackState=";
eventEmitter.playbackRateChange(playWhenReady && playbackState == ExoPlayer.STATE_READY ? 1.0f : 0.0f);
switch (playbackState) { switch (playbackState) {
case Player.STATE_IDLE: case Player.STATE_IDLE:
text += "idle"; text += "idle";