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 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