Commit 61a38a19 by bachinger Committed by tonihei

Map `PLAYER_STATE_LOADING` to `STATE_BUFFERING`

#minor-release
Issue: androidx/media#245
PiperOrigin-RevId: 510456793
(cherry picked from commit a231ff4f)
parent 52d5ff46
...@@ -1235,6 +1235,7 @@ public final class CastPlayer extends BasePlayer { ...@@ -1235,6 +1235,7 @@ public final class CastPlayer extends BasePlayer {
int receiverAppStatus = remoteMediaClient.getPlayerState(); int receiverAppStatus = remoteMediaClient.getPlayerState();
switch (receiverAppStatus) { switch (receiverAppStatus) {
case MediaStatus.PLAYER_STATE_BUFFERING: case MediaStatus.PLAYER_STATE_BUFFERING:
case MediaStatus.PLAYER_STATE_LOADING:
return STATE_BUFFERING; return STATE_BUFFERING;
case MediaStatus.PLAYER_STATE_PLAYING: case MediaStatus.PLAYER_STATE_PLAYING:
case MediaStatus.PLAYER_STATE_PAUSED: case MediaStatus.PLAYER_STATE_PAUSED:
...@@ -1297,6 +1298,7 @@ public final class CastPlayer extends BasePlayer { ...@@ -1297,6 +1298,7 @@ public final class CastPlayer extends BasePlayer {
return false; return false;
} }
@SuppressWarnings("VisibleForTests")
private static int getCastRepeatMode(@RepeatMode int repeatMode) { private static int getCastRepeatMode(@RepeatMode int repeatMode) {
switch (repeatMode) { switch (repeatMode) {
case REPEAT_MODE_ONE: case REPEAT_MODE_ONE:
......
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