fix: fix tvos available compile errors
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import AVKit
|
||||
|
||||
class RCTVideoPlayerViewController: AVPlayerViewController {
|
||||
|
||||
|
||||
weak var rctDelegate: RCTVideoPlayerViewControllerDelegate?
|
||||
|
||||
|
||||
// Optional paramters
|
||||
var preferredOrientation:String?
|
||||
var autorotate:Bool?
|
||||
|
||||
|
||||
func shouldAutorotate() -> Bool {
|
||||
|
||||
if autorotate! || preferredOrientation == nil || (preferredOrientation!.lowercased() == "all") {
|
||||
@@ -19,12 +19,12 @@ class RCTVideoPlayerViewController: AVPlayerViewController {
|
||||
|
||||
override func viewDidDisappear(_ animated: Bool) {
|
||||
super.viewDidDisappear(animated)
|
||||
|
||||
|
||||
rctDelegate?.videoPlayerViewControllerWillDismiss(playerViewController: self)
|
||||
rctDelegate?.videoPlayerViewControllerDidDismiss(playerViewController: self)
|
||||
}
|
||||
|
||||
#if !TARGET_OS_TV
|
||||
#if !os(tvOS)
|
||||
|
||||
func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
|
||||
return .all
|
||||
|
||||
Reference in New Issue
Block a user