fix: observe playback state to unhide native video surface
This commit is contained in:
@@ -122,6 +122,12 @@ private enum CLIInstanceCheck {
|
||||
result["sidebarOwnsMouse"] = hit(NSPoint(x: surface.bounds.maxX + 130, y: surface.bounds.midY)) !== surface
|
||||
result["videoWidth"] = surface.bounds.width
|
||||
result["videoHeight"] = surface.bounds.height
|
||||
if let video = PlayerModel.shared.videoView {
|
||||
result["rendererWidth"] = video.bounds.width
|
||||
result["rendererHeight"] = video.bounds.height
|
||||
result["rendererAttached"] = video.superview === surface
|
||||
result["rendererHidden"] = video.isHidden
|
||||
}
|
||||
result["surfaceMovesOnMouseDown"] = surface.mouseDownCanMoveWindow
|
||||
let edges = [NSPoint(x: 1, y: content.bounds.midY),
|
||||
NSPoint(x: content.bounds.maxX - 1, y: content.bounds.midY),
|
||||
|
||||
Reference in New Issue
Block a user