fix(tvOS): fix tvos compile error (#4369)
* fix(tvOS): fix tvos compile error
This commit is contained in:
parent
6cc1bff167
commit
6c3af99979
@ -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
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user