fix(macos): restore video layer on focus

This commit is contained in:
edde746
2026-05-11 10:13:05 +02:00
parent 8d76dff353
commit 9b248a7a5b
7 changed files with 56 additions and 12 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
// MpvPluginShared conformance
var coreBase: MpvPlayerCoreBase? { playerCore }
func setPlayerVisible(_ visible: Bool) { playerCore?.setVisible(visible) }
func setPlayerVisible(_ visible: Bool, restoreOnWindowVisible _: Bool) { playerCore?.setVisible(visible) }
func updatePlayerFrame() { playerCore?.updateFrame() }
// PiP