lucasbento / react-native-thumbnail-video

Easily show thumbnails for videos on react-native.
MIT License
106 stars 36 forks source link

How to show Thumbnail Local video? #8

Open Donhv opened 6 years ago

Donhv commented 6 years ago

I want show Thumbnail for Local video Example : requeri('./video/video.mp4') Help me!

lucasbento commented 6 years ago

@Donhv: sorry, didn't see this issue before, there's currently no way of doing that, it supports only youtube video, would appreciate a PR though.

azanli commented 6 years ago

@Donhv You can use react-native-video, just render the <Video source={{ uri: '/local/file.mp4' }} pause={true} /> paused.

nicoara commented 5 years ago

@Friendly-Robot you cannot save a thumbnail from react-native-video (which is the whole point of the question).

LuongTruong commented 5 years ago

@nicoara I agree, showing thumbnail and showing a paused video have a lot of difference. I am struggling with this because I cannot show thumbnail of MOV video in iOS

nicoara commented 5 years ago

I have found the code in the library react-native-thumbnail works.

LuongTruong commented 5 years ago

Hi @nicoara , I just realize that MOV movie thumbnail cannot be shown is not because of Image tag. It is because the return path of react-native-image-picker cannot be read by Image tag.

lyxia commented 5 years ago

Hi @truongluong1314520, Is there any solution now? In addition to pausing the video.I also use react-native-image-picker.

lyxia commented 5 years ago

Hi @nicoara, react-native-thumbnail resolve my problem, thanks.