From 3da4f1ca979058b387b1be2c2141f6b93fd084a7 Mon Sep 17 00:00:00 2001 From: "Giovanni P." <33172553+giodevcoding@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:50:32 -0600 Subject: [PATCH] fix(ios): `_paused` is updated when video playback pause (#4320) --- ios/Video/RCTVideo.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 5b17b08b44..3ce69c8c39 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -1508,6 +1508,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH guard _isPlaying != isPlaying else { return } _isPlaying = isPlaying + _paused = !isPlaying onVideoPlaybackStateChanged?(["isPlaying": isPlaying, "isSeeking": self._pendingSeek == true, "target": reactTag as Any]) }