如何从直播视频网址获取视频缩略图(帧)
我在服务器上上传了视频.这是电影的预告片.在实时网址的帮助下,我可以将此视频直接播放到我的 videoView.我的问题:android 中是否有任何方法可以帮助我从 url 获取视频帧,而无需下载视频到本地存储.我知道一种方法名称createvideothumbnail",但在我的情况下它不起作用.因为我需要在不下载整个视频的情况下获取视频缩略图.如您所见,该机制已在 imdb 官方应用(预告片部分)中实现.
I have video uploaded on server. which is trailer of movie. I can play this video direct to my videoView with the help of live url. My question: is there any method in android which help me out to get a video frame from url without download the video to local storage. I know one method name "createvideothumbnail" but it will not work in my case. because i need to get the video thumbnail without download the whole video. as you have seen the mechanism is implemented in imdb official app (Trailer section).
请帮忙,提前致谢
直到现在(API Level 22
)我很确定应用程序您描述了之前创建的加载缩略图.
Getting thumbnails without download the complete video is not possible until now (API Level 22
) i´m pretty sure that the application that you describe load thumbnails that were created previously.
当前选项将使用类:
import android.provider.MediaStore.Video.Thumbnails;
或在单独的过程中创建缩略图.
or create the thumbnails in a separated process.