fix: observe playback state to unhide native video surface

This commit is contained in:
2026-10-18 02:05:25 +02:00
parent 07243f0ed7
commit 3e782aff31
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1881,7 +1881,7 @@ private struct CaptionSelector: NSViewRepresentable {
@MainActor
struct PlaybackSurface: NSViewRepresentable {
let model: PlayerModel
@ObservedObject var model: PlayerModel
func makeNSView(context: Context) -> DragView { DragView(model: model) }
func updateNSView(_ view: DragView, context: Context) { view.updateVideo() }