Map PLAYER_STATE_LOADING
to STATE_BUFFERING
#minor-release Issue: androidx/media#245 PiperOrigin-RevId: 510456793 (cherry picked from commit a231ff4fa91471c59d2ab62945603614b8c8a742)
This commit is contained in:
parent
52d5ff466c
commit
61a38a1920
@ -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 {
|
|||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user