fix: fix ios compile issue

This commit is contained in:
wood1986 2022-12-21 11:35:54 -08:00
parent 685a626542
commit 0d6c50756c

View File

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