Fix stop of local mediaSession immediately cancelling Cast playback (#7598)

This commit is contained in:
ByteHamster 2025-01-11 10:34:11 +01:00 committed by GitHub
parent e8b7c688bc
commit cf99a0e07e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1862,7 +1862,9 @@ public class PlaybackService extends MediaBrowserServiceCompat {
@Override
public void onStop() {
Log.d(TAG, "onStop()");
mediaPlayer.stopPlayback(true);
if (!mediaPlayer.isCasting()) {
mediaPlayer.stopPlayback(true);
}
}
@Override