fix(tvOS): fix tvos compile error (#4369)

* fix(tvOS): fix tvos compile error
This commit is contained in:
YangJH 2025-01-18 19:49:12 +09:00 committed by GitHub
parent 6cc1bff167
commit 6c3af99979
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View File

@ -90,4 +90,14 @@ import React
}
}
}
#else
class RCTPictureInPicture: NSObject {
public let _pipController: NSObject? = nil
func setRestoreUserInterfaceForPIPStopCompletionHandler(_: Bool) {}
func setupPipController(_: AVPlayerLayer?) {}
func deinitPipController() {}
func enterPictureInPicture() {}
func exitPictureInPicture() {}
}
#endif

View File

@ -102,9 +102,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
private let _videoCache: RCTVideoCachingHandler = .init()
#endif
#if os(iOS)
private var _pip: RCTPictureInPicture?
#endif
private var _pip: RCTPictureInPicture?
// Events
@objc var onVideoLoadStart: RCTDirectEventBlock?