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:
@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
|
||||
fontSize: 11,
|
||||
color: 'white',
|
||||
padding: 10,
|
||||
paddingTop: 50,
|
||||
lineHeight: 12,
|
||||
},
|
||||
controlOption: {
|
||||
|
||||
@@ -86,6 +86,7 @@ const styles = StyleSheet.create({
|
||||
fontSize: 11,
|
||||
color: 'white',
|
||||
padding: 10,
|
||||
paddingTop: 50,
|
||||
lineHeight: 12,
|
||||
},
|
||||
controlOption: {
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user