mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
remove deprecated usage of onPlayerStateChanged
PiperOrigin-RevId: 294181886
This commit is contained in:
parent
fc24a0d52d
commit
016bacd178
1 changed files with 7 additions and 1 deletions
|
|
@ -1095,7 +1095,13 @@ public final class MediaSessionConnector {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onPlayerStateChanged(boolean playWhenReady, @Player.State int playbackState) {
|
||||
public void onPlaybackStateChanged(@Player.State int playbackState) {
|
||||
invalidateMediaSessionPlaybackState();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPlayWhenReadyChanged(
|
||||
boolean playWhenReady, @Player.PlayWhenReadyChangeReason int reason) {
|
||||
invalidateMediaSessionPlaybackState();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue