Skip to content

Commit b17c319

Browse files
authored
fix(macCatalyst): allowsVideoFrameAnalysis not available in catalyst until 18.0 (#4515)
1 parent 4034046 commit b17c319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ios/Video/RCTVideo.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,15 +561,15 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
561561
}
562562
} else {
563563
#if !os(tvOS) && !os(visionOS)
564-
if #available(iOS 16.0, *) {
564+
if #available(iOS 16.0, macCatalyst 18.0, *) {
565565
// This feature caused crashes, if the app was put in bg, before the source change
566566
// https://github.com/TheWidlarzGroup/react-native-video/issues/3900
567567
self._playerViewController?.allowsVideoFrameAnalysis = false
568568
}
569569
#endif
570570
_player?.replaceCurrentItem(with: playerItem)
571571
#if !os(tvOS) && !os(visionOS)
572-
if #available(iOS 16.0, *) {
572+
if #available(iOS 16.0, macCatalyst 18.0, *) {
573573
self._playerViewController?.allowsVideoFrameAnalysis = true
574574
}
575575
#endif

0 commit comments

Comments
 (0)