souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
251 stars 105 forks source link

how do i access thumbnail from local device file using react native video player #21

Closed aleluiah closed 4 years ago

aleluiah commented 4 years ago

i want to access thumb nail from local device file using react-native-video-player. below is my code

<VideoPlayer resizeMode='stretch' thumbnail={{uri: 'file:///data/user/0/com/myfirstproject/cache/thumbnails/thumb-6d12fb87-4200-4a52-85ab-d9a0efa3720f.jpeg'}} repeat={false} playWhenInactive={false} video={{uri: urii}} style={{ maxWidth: '100%', height: 250, padding: 0, margin: 0 }} mediaPlaybackRequiresUserAction = {true} />

souvik-ghosh commented 4 years ago

@aleluiah in response of createThumbnail you will get the path to generated image(jpeg/png) file. Use this path to show the thumbnails like any other image.

aleluiah commented 4 years ago

thanks sir, iappreciate

On Fri, Jul 31, 2020 at 8:13 PM Souvik Ghosh notifications@github.com wrote:

@aleluiah https://github.com/aleluiah in response of createThumbnail you will get the path to generated image(jpeg/png) file. Use this path to show the thumbnails like any other image.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/souvik-ghosh/react-native-create-thumbnail/issues/21#issuecomment-667307024, or unsubscribe https://github.com/notifications/unsubscribe-auth/APWYXY3XWBFF6GU4ZJHVX4LR6MJVJANCNFSM4OOCKPBA .