我怎么可以创建一个Android的视频网址的缩略图? [英] how can I create a thumbnail of a video url in android?
问题描述
我有一个问题,我只能创建的本地视频文件的缩略图,但不是远程URL,这里是我的code:
I have a problem, I can only create thumbnails of local video files but not of a remote url, here is my code:
bmThumbnail = ThumbnailUtils.extractThumbnail(ThumbnailUtils.createVideoThumbnail("http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4", MediaStore.Video.Thumbnails.MINI_KIND), 50, 50);
我希望你能帮助我,
I hope you can help me,
问候
基督教
推荐答案
我想有没有简单的方法来建立缩略图,而无需实际下载本地视频。
I suppose there is no easy way to build the thumbnail without actually downloading the video locally.
所以,如果你的问题是我能得到一个缩略图,而无需下载完整的视频?',我说...没有。
So if your question is 'Can I get a thumbnail without having to download the full video?', I'd say...no.
否则,一旦你已经下载到本地视频的话,我想你可以完美地通过给下载的文件路径中使用 ThumbnailUtils.createVideoThumbnail(...)
。
Otherwise, once you have downloaded the video locally, then I guess you can perfectly use ThumbnailUtils.createVideoThumbnail(...)
by giving the path to the downloaded file.
这篇关于我怎么可以创建一个Android的视频网址的缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!