fix(ios): _paused is updated when video playback pause (#4320)

This commit is contained in:
Giovanni P.
2024-12-10 12:50:32 -06:00
committed by GitHub
parent 7b4bd9a016
commit 3da4f1ca97

View File

@@ -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])
} }