mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
Merge pull request #644 from stonerl/music-mode
MusicMode: don't bindPlayerToLayer when entering foreground
This commit is contained in:
commit
46f89db11a
@ -946,7 +946,10 @@ final class PlayerModel: ObservableObject {
|
|||||||
#else
|
#else
|
||||||
func handleEnterForeground() {
|
func handleEnterForeground() {
|
||||||
setNeedsDrawing(presentingPlayer)
|
setNeedsDrawing(presentingPlayer)
|
||||||
|
|
||||||
|
if !musicMode, activeBackend == .appleAVPlayer {
|
||||||
avPlayerBackend.bindPlayerToLayer()
|
avPlayerBackend.bindPlayerToLayer()
|
||||||
|
}
|
||||||
|
|
||||||
guard closePiPAndOpenPlayerOnEnteringForeground, playingInPictureInPicture else {
|
guard closePiPAndOpenPlayerOnEnteringForeground, playingInPictureInPicture else {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user