mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +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)
|
||||||
avPlayerBackend.bindPlayerToLayer()
|
|
||||||
|
if !musicMode, activeBackend == .appleAVPlayer {
|
||||||
|
avPlayerBackend.bindPlayerToLayer()
|
||||||
|
}
|
||||||
|
|
||||||
guard closePiPAndOpenPlayerOnEnteringForeground, playingInPictureInPicture else {
|
guard closePiPAndOpenPlayerOnEnteringForeground, playingInPictureInPicture else {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user