如何显示本地视频的缩略图
您知道显示本地视频缩略图的库/方法吗? 我使用react-native-image-picker从我的设备中选择一个视频,并且我想在有多个选择的情况下在视图或平面列表中显示该视频的缩略图
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
您知道显示本地视频缩略图的库/方法吗? 我使用react-native-image-picker从我的设备中选择一个视频,并且我想在有多个选择的情况下在视图或平面列表中显示该视频的缩略图
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果您正在使用 Expo 并且没有部署到网络,则此软件包将为您完成这项工作: https://docs.expo.dev/versions/latest/sdk/video-thumbnails/
If you are using Expo and you are not deploying to web, this package will do the job for you: https://docs.expo.dev/versions/latest/sdk/video-thumbnails/
您可以使用下面的插件从本地路径获取缩略图
https://github.com/phuochau /react-native-thumbnail#readme
获取显示路径后,您可以使用react-native-video进行播放和显示
react-native-video 并使用下面的代码
希望这对您有用。
You can use below plugin for get thubmnail form local path
https://github.com/phuochau/react-native-thumbnail#readme
After getting path for display purpose you can use react-native-video for play and display
react-native-video and use below code
Hope this will work for you.