fix ios block ui issue
This commit is contained in:
parent
9914faf4d9
commit
ccff99faff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user