Skip to content
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

Merged
merged 8 commits into from
Jun 22, 2019

Conversation

jenshandersson
Copy link
Contributor

@jenshandersson jenshandersson commented Jun 19, 2019

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

@jenshandersson
Copy link
Contributor Author

@CHaNGeTe I'm happy with this one now, but need help testing. Especially on android and the ExoPlayer. We need to verify that onReadyForDisplay is called for all platforms, otherwise the poster won't be removed. What do you guys think of this solution?

@CHaNGeTe CHaNGeTe requested a review from n1ru4l June 20, 2019 05:32
@CHaNGeTe CHaNGeTe changed the base branch from master to release/4.4.2 June 20, 2019 05:34
@jenshandersson
Copy link
Contributor Author

@CHaNGeTe I just pushed a commit that hides the poster in onLoad as onReadyForDisplay is not implemented. (A good example why maintaining several platforms is hard ;p)

Copy link
Contributor

@n1ru4l n1ru4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legit!

@CHaNGeTe CHaNGeTe merged commit 3a7be63 into TheWidlarzGroup:release/4.4.2 Jun 22, 2019
beauner69 pushed a commit to beauner69/react-native-video that referenced this pull request Oct 10, 2019
Fixes bug where poster and video was displayed simultaneously

(rebased from commit 3a7be63)
@IamMasterWayne
Copy link

"react-native": "0.61.5"
"react-native-video": "^5.0.2"

React Native Android Black Screen For Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants