Skip to content

Commit

Permalink
Map PLAYER_STATE_LOADING to STATE_BUFFERING
Browse files Browse the repository at this point in the history
#minor-release
Issue: androidx/media#245
PiperOrigin-RevId: 510456793
(cherry picked from commit a231ff4)
  • Loading branch information
marcbaechinger authored and tonihei committed Feb 28, 2023
1 parent 52d5ff4 commit 61a38a1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ private static int fetchPlaybackState(RemoteMediaClient remoteMediaClient) {
int receiverAppStatus = remoteMediaClient.getPlayerState();
switch (receiverAppStatus) {
case MediaStatus.PLAYER_STATE_BUFFERING:
case MediaStatus.PLAYER_STATE_LOADING:
return STATE_BUFFERING;
case MediaStatus.PLAYER_STATE_PLAYING:
case MediaStatus.PLAYER_STATE_PAUSED:
Expand Down Expand Up @@ -1297,6 +1298,7 @@ private static boolean isTrackActive(long id, long[] activeTrackIds) {
return false;
}

@SuppressWarnings("VisibleForTests")
private static int getCastRepeatMode(@RepeatMode int repeatMode) {
switch (repeatMode) {
case REPEAT_MODE_ONE:
Expand Down

0 comments on commit 61a38a1

Please sign in to comment.