fix(tvOS): fix tvos compile error for rotation handler (#4417)
This commit is contained in:
@@ -257,12 +257,14 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
object: nil
|
object: nil
|
||||||
)
|
)
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(
|
#if os(iOS)
|
||||||
self,
|
NotificationCenter.default.addObserver(
|
||||||
selector: #selector(handleRotation),
|
self,
|
||||||
name: UIDevice.orientationDidChangeNotification,
|
selector: #selector(handleRotation),
|
||||||
object: nil
|
name: UIDevice.orientationDidChangeNotification,
|
||||||
)
|
object: nil
|
||||||
|
)
|
||||||
|
#endif
|
||||||
|
|
||||||
_playerObserver._handlers = self
|
_playerObserver._handlers = self
|
||||||
#if USE_VIDEO_CACHING
|
#if USE_VIDEO_CACHING
|
||||||
|
|||||||
Reference in New Issue
Block a user