Skip to content

Commit

Permalink
fix ios block ui issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind committed Jul 12, 2023
1 parent 9914faf commit ccff99f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccff99f

Please sign in to comment.