fix(tvOS): fix tvos compile error for rotation handler (#4417)

This commit is contained in:
Konstantin
2025-02-16 11:55:46 +01:00
committed by GitHub
parent 451bafebd7
commit 04eec42f1e

View File

@@ -257,12 +257,14 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
object: nil
)
NotificationCenter.default.addObserver(
self,
selector: #selector(handleRotation),
name: UIDevice.orientationDidChangeNotification,
object: nil
)
#if os(iOS)
NotificationCenter.default.addObserver(
self,
selector: #selector(handleRotation),
name: UIDevice.orientationDidChangeNotification,
object: nil
)
#endif
_playerObserver._handlers = self
#if USE_VIDEO_CACHING