fix(ios): fix paused video by default (#4379)

* fix: update style to allow show control click
* fix: push missing revert
This commit is contained in:
Olivier Bouillet
2025-01-22 22:56:50 +01:00
committed by GitHub
parent d90bf47df5
commit 3d3eba97e8
3 changed files with 5 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
fontSize: 11,
color: 'white',
padding: 10,
paddingTop: 50,
lineHeight: 12,
},
controlOption: {

View File

@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
fontSize: 11,
color: 'white',
padding: 10,
paddingTop: 50,
lineHeight: 12,
},
controlOption: {

View File

@@ -1538,7 +1538,9 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
guard _isPlaying != isPlaying else { return }
_isPlaying = isPlaying
_paused = !isPlaying
if _controls {
_paused = !isPlaying
}
onVideoPlaybackStateChanged?(["isPlaying": isPlaying, "isSeeking": self._pendingSeek == true, "target": reactTag as Any])
}