How to get video thumbnail (frame) from live video url

浪子不回头ぞ 提交于 2019-12-23 20:21:06

问题


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).

Please help, thanks in advance


回答1:


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.

the current option would be using the class:

import android.provider.MediaStore.Video.Thumbnails;

or create the thumbnails in a separated process.



来源:https://stackoverflow.com/questions/30224416/how-to-get-video-thumbnail-frame-from-live-video-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!