mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
only bind Player if the active backend is AVPlayer
This commit is contained in:
parent
c41b635276
commit
4144a29608
@ -936,7 +936,7 @@ final class PlayerModel: ObservableObject {
|
|||||||
func handleEnterForeground() {
|
func handleEnterForeground() {
|
||||||
setNeedsDrawing(presentingPlayer)
|
setNeedsDrawing(presentingPlayer)
|
||||||
|
|
||||||
if !musicMode {
|
if !musicMode, activeBackend == .appleAVPlayer {
|
||||||
avPlayerBackend.bindPlayerToLayer()
|
avPlayerBackend.bindPlayerToLayer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user