fix(ios): _paused
is updated when video playback pause (#4320)
This commit is contained in:
parent
7b4bd9a016
commit
3da4f1ca97
@ -1508,6 +1508,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
|
|
||||||
guard _isPlaying != isPlaying else { return }
|
guard _isPlaying != isPlaying else { return }
|
||||||
_isPlaying = isPlaying
|
_isPlaying = isPlaying
|
||||||
|
_paused = !isPlaying
|
||||||
onVideoPlaybackStateChanged?(["isPlaying": isPlaying, "isSeeking": self._pendingSeek == true, "target": reactTag as Any])
|
onVideoPlaybackStateChanged?(["isPlaying": isPlaying, "isSeeking": self._pendingSeek == true, "target": reactTag as Any])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user