only bind Player if the active backend is AVPlayer

This commit is contained in:
Toni Förster
2024-04-26 18:33:12 +02:00
parent c41b635276
commit 4144a29608

View File

@@ -936,7 +936,7 @@ final class PlayerModel: ObservableObject {
func handleEnterForeground() {
setNeedsDrawing(presentingPlayer)
if !musicMode {
if !musicMode, activeBackend == .appleAVPlayer {
avPlayerBackend.bindPlayerToLayer()
}