Skip to content

Commit

Permalink
fix(ios): _paused is updated when video playback pause (TheWidlarzG…
Browse files Browse the repository at this point in the history
  • Loading branch information
giodevcoding authored Dec 10, 2024
1 parent 7b4bd9a commit 3da4f1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down

0 comments on commit 3da4f1c

Please sign in to comment.