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