From ccff99faffb42e879dccbe94afaffd9b09d4cd01 Mon Sep 17 00:00:00 2001 From: aravind Date: Wed, 12 Jul 2023 12:41:48 +0530 Subject: [PATCH] fix ios block ui issue --- ios/Video/RCTVideo.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index baeac2bf9b..f341fc5c59 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -563,6 +563,10 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH func applyModifiers() { + if let video = _player?.currentItem, + video == nil || video.status != AVPlayerItem.Status.readyToPlay { + return + } if _muted { if !_controls { _player?.volume = 0