mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
prevent switching to audio mode when switching to the background if the player is already play audio only
Changelog: changed
This commit is contained in:
parent
9347351c37
commit
67e9d44295
1 changed files with 3 additions and 2 deletions
|
@ -1090,8 +1090,9 @@ class VideoDetailView : ConstraintLayout {
|
|||
when (Settings.instance.playback.backgroundPlay) {
|
||||
0 -> handlePause();
|
||||
1 -> {
|
||||
if(!(video?.isLive ?: false) && Settings.instance.playback.backgroundSwitchToAudio)
|
||||
_player.switchToAudioMode();
|
||||
if (video?.isLive != true && Settings.instance.playback.backgroundSwitchToAudio && _lastVideoSource !== null) {
|
||||
_player.switchToAudioMode()
|
||||
}
|
||||
StatePlayer.instance.startOrUpdateMediaSession(context, video);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue