Merge pull request #3173 from vemarav/fix-flatlist-ios-ui-block

fix: ios block ui issue
This commit is contained in:
Olivier Bouillet 2023-08-03 20:55:30 +02:00 committed by GitHub
commit 6c4e90e55f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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