fix(android): poster hidding (#3768)

* fix(android): fix poster management
This commit is contained in:
Olivier Bouillet 2024-05-14 13:04:44 +02:00 committed by GitHub
parent aa854fb4ad
commit 98b4a75a90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -572,7 +572,9 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
onAudioFocusChanged={
onAudioFocusChanged ? _onAudioFocusChanged : undefined
}
onReadyForDisplay={onReadyForDisplay ? _onReadyForDisplay : undefined}
onReadyForDisplay={
onReadyForDisplay || hasPoster ? _onReadyForDisplay : undefined
}
onPlaybackRateChange={
onPlaybackRateChange ? _onPlaybackRateChange : undefined
}