fix ios block ui issue

This commit is contained in:
aravind 2023-07-12 12:41:48 +05:30
parent 9914faf4d9
commit ccff99faff

View File

@ -563,6 +563,10 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
func applyModifiers() { func applyModifiers() {
if let video = _player?.currentItem,
video == nil || video.status != AVPlayerItem.Status.readyToPlay {
return
}
if _muted { if _muted {
if !_controls { if !_controls {
_player?.volume = 0 _player?.volume = 0