feat(ios): support external display playback

close #984
This commit is contained in:
edde746
2026-05-06 02:17:20 +02:00
parent 25a2187bf4
commit 88430ba7b6
6 changed files with 281 additions and 18 deletions
+1 -3
View File
@@ -95,9 +95,7 @@ import UIKit
// The sample buffer layer must be in a visible view hierarchy for
// isPictureInPicturePossible to become true.
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let window = windowScene.windows.first(where: { $0.isKeyWindow })
{
if let window = ExternalDisplayManager.mainApplicationWindow() {
let view = UIView(frame: window.bounds)
view.clipsToBounds = true
view.isUserInteractionEnabled = false