如何检索放置在从媒体扫描中排除的文件夹中的视频的缩略图
我正在尝试获取视频的缩略图。我正在关注这个答案。
我的问题是,我想要制作缩略图的视频是缓存文件夹中带有 .nomedia 文件的文件,因此该视频不会出现在媒体扫描中,并且返回的光标为空。
如何解决保持最小 sdk 级别 =7 的问题?
谢谢!
编辑:开始悬赏该问题的答案:检索文件系统文件夹中视频文件的缩略图,该文件夹被排除在媒体扫描之外,保持项目 Min SDK =7
I'm trying to get a thumbnail of a video. I'm following this answer.
My problem is that the video I want to make the thumbnail is an file in a cache folder with an .nomedia file and for that reason the video doesn't appear in the media scan and the returned cursor is empty.
How can I solve that problem keeping the min sdk level =7?
Thanks!
Edit: Starting a bounty for the answer to that question: Retrieve a thumbnail for a video file in a folder at the filesystem which is excluded from media scan keeping the project Min SDK =7
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试通过广播强制扫描媒体文件:
Try force the scan of media file with a broadcast:
如果您可以制作视频文件夹,我告诉您这样做:
但是就像这个答案所说:
从此处提取
If you can make the video folder , i tell you to do this :
But like this answer says:
extracted from here