react-native-video: Show poster until play is triggered
Feature Request
I noticed that the poster is removed when the video has loaded. Could it be possible to add an option to have the poster and play button visible until the user hits play?
Why it is needed
The first frame of the video isn’t necessarily something that looks very good. It’d be nice to be able to show a well designed thumbnail until the user hits play.
Possible implementation
I guess _onReadyForDisplay could check a specific prop that would leave the poster visible. Play button would have to be shown as well. I’m not too familiar with the code in this project so I don’t have any ideas about implementing that.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 15
- Comments: 16
I aggree
This is a pure UI request. This shall be handled by application. The good way to implement it is:
I expect it to have the same behavior as
posteron HTML<video />. To me,poster!== loading state. If it’s not going to act as aposter, why have it at all? It’s a little confusing. Seems like the functionality should be updated to reflectposterorpostershould be renamedloaderand accept a component or something.I think you expect react native video to implement UI in place of the app. Not sure this is a good idea to put this feature in react native video 😕
Yes we need a thumbnail preview for this library