fix(ios): restore inline UI after PIP stop to prevent black screen (#4852)

* fix(ios): restore inline UI after PIP stop to prevent black screen

* fix: restore pip when view is attached
This commit is contained in:
Kamil Moskała
2026-03-09 12:32:44 +01:00
committed by GitHub
parent bb2debc566
commit e96d9565bd
@@ -117,6 +117,14 @@ class VideoComponentViewObserver: NSObject, AVPlayerViewControllerDelegate {
func playerViewControllerWillStopPictureInPicture(_: AVPlayerViewController) {
delegate?.willExitPictureInPicture()
}
func playerViewControllerRestoreUserInterfaceForPictureInPictureStop(
_ playerViewController: AVPlayerViewController,
completionHandler: @escaping (Bool) -> Void
) {
let isViewAttached = view?.window != nil
completionHandler(isViewAttached)
}
func playerViewController(
_: AVPlayerViewController,