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
|
#endif
|
||||||
|
@ -102,9 +102,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
private let _videoCache: RCTVideoCachingHandler = .init()
|
private let _videoCache: RCTVideoCachingHandler = .init()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if os(iOS)
|
|
||||||
private var _pip: RCTPictureInPicture?
|
private var _pip: RCTPictureInPicture?
|
||||||
#endif
|
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
@objc var onVideoLoadStart: RCTDirectEventBlock?
|
@objc var onVideoLoadStart: RCTDirectEventBlock?
|
||||||
|
Loading…
Reference in New Issue
Block a user