-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
how to get video thumbnail #700
Comments
Nice, never thought about it... |
@Symous Any special styling that needs to be applied to the Image component? Even though I use an image with a URI, ex: 'https://cdn.com/video.mp4') I'm still getting a no thumbnail. |
@abologna-r7 nothing special , but if you are trying to load a video on Internet , I guess that it will need time to load thevideo? I am using this way to show thumbnail of a local video. |
@abologna-r7 me too, it doesn't work. I got the following error: |
use uri:'file:///path_to_image' |
I've tried this and found out that this only works in Android for me. No luck in iOS. |
same here, on android it works fine, but on iOS it doesn't work. |
in my case this works only on iOS |
not work for me |
You could use this library to make a thumbnail image: https://github.com/phuochau/react-native-thumbnail |
do u think we can add this to the docs? |
what library did u guys use to get the url? in my case i used React Native CameraRoll on Android which returns file path as content://media/external/video/media/7086, but it doesnt show thumbnail when i plug in the file path as source uri. @Symous |
@leonyhenn did you find any solution ? |
@leonyhenn @asimkhan0 Like @timt mentioned: https://github.com/phuochau/react-native-thumbnail |
Actually,I have sloved this by myself. I leave this issue here to help any other who are looking for the solution. :-)
it's a surprise for me to find that if we put a video uri(such as video generated by react-native-camera) to Image of react-native component, it will show us a thumbnail of the video automatically.
The text was updated successfully, but these errors were encountered: