How to get video thumbnail from url in React Native

Hoàng Vũ Anh picture Hoàng Vũ Anh · Jul 30, 2018 · Viewed 9.1k times · Source

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, like this: https://filev4.subiz.com/fiqbjssxydufxauruqxi-video_test.mp4 . Is there a RN component or library to do this? Because I see this is cod to get video thumbnail for ios: Getting a thumbnail from a video url or data in iPhone SDK.

and here is code to get thumbnail for android: https://medium.com/@mujtahidah/get-thumbnail-video-from-url-android-f71533168228.

and library: https://github.com/react-native-community/react-native-video for react native can get thumbnail of video for both of android and ios but it's make app frezee and crash if you load a lot of video, so i just want to get only thubnail of video from url, not load all video, I find some day, I try with this: https://github.com/chadsmith/react-native-video-preview but nothing work.

This https://github.com/lucasbento/react-native-thumbnail-video get only thumbnail from youtube.

This: https://github.com/phuochau/react-native-thumbnail get only thumbnail from local, not from url.

I try many way but still... Someone can help?

Answer