Merge pull request #2969 from wood1986/fix-ios-build-error

fix: fix ios compile issue
This commit is contained in:
Olivier Bouillet 2022-12-21 21:30:41 +01:00 committed by GitHub
commit ae6bbacb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
} }
self._player = self._player ?? AVPlayer() self._player = self._player ?? AVPlayer()
self._player.replaceCurrentItem(with: playerItem) self._player?.replaceCurrentItem(with: playerItem)
self._playerObserver.player = self._player self._playerObserver.player = self._player
self.applyModifiers() self.applyModifiers()
self._player?.actionAtItemEnd = .none self._player?.actionAtItemEnd = .none