mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
only bind Player if the active backend is AVPlayer
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user