mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Map PLAYER_STATE_LOADING to STATE_BUFFERING
#minor-release Issue: androidx/media#245 PiperOrigin-RevId: 510456793
This commit is contained in:
parent
8aa1638fe4
commit
a231ff4fa9
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue