-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes bug where poster and video was displayed simultaneously #1627
Fixes bug where poster and video was displayed simultaneously #1627
Conversation
@CHaNGeTe I'm happy with this one now, but need help testing. Especially on android and the ExoPlayer. We need to verify that |
@CHaNGeTe I just pushed a commit that hides the poster in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legit!
Fixes bug where poster and video was displayed simultaneously (rebased from commit 3a7be63)
"react-native": "0.61.5" React Native Android Black Screen For Android |
When using poster image and not using absolute positioning of the Video element you end up with both video and poster elements. This was introduced in #1167. My fix to revert some changes but keep the benefits of no flashing.
This fix relies on
onReadyForDisplay
callback to hide the poster. It's been tested on iOS and ExoPlayer. I added it to DOM as well but haven't been able to test...Fixes 1509