mirror of
https://github.com/yattee/yattee.git
synced 2025-01-25 22:27:04 +00:00
Fix mpv initialization on macOS
This commit is contained in:
parent
fe8ec63408
commit
8dd028126c
@ -578,6 +578,12 @@ final class PlayerModel: ObservableObject {
|
|||||||
avPlayerBackend.switchToMPVOnPipClose = false
|
avPlayerBackend.switchToMPVOnPipClose = false
|
||||||
closePiP()
|
closePiP()
|
||||||
}
|
}
|
||||||
|
#if os(macOS)
|
||||||
|
// TODO: initialize mpv on startup on mac
|
||||||
|
if mpvBackend.client.isNil {
|
||||||
|
Windows.player.open()
|
||||||
|
}
|
||||||
|
#endif
|
||||||
changeActiveBackend(from: .appleAVPlayer, to: .mpv)
|
changeActiveBackend(from: .appleAVPlayer, to: .mpv)
|
||||||
controls.presentingControls = true
|
controls.presentingControls = true
|
||||||
controls.removeTimer()
|
controls.removeTimer()
|
||||||
|
Loading…
Reference in New Issue
Block a user