Issue
I have videos that I'd like to present as thumbnails before a user clicks on them for the full video. They are not local, I only have the url. Is there a RN component to do this? The RN Image component does not take videos urls as sources.
Solution
Not possible. Video thumbnail cannot be auto-generated from video URL. It should be created and stored along with the video in backend database and when RN app receives video URL, it should receive thumbnail URL too. Then you can use Image
and TouchableOpacity
components to add pressing behavior on the thumbnail.
However, if you use Youtube videos only, then react-native-thumbnail-video might be a quick solution to your problem.
Answered By - blaz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.