如何从直播视频网址获取视频缩略图(帧) [英] How to get video thumbnail (frame) from live video url

查看:49
本文介绍了如何从直播视频网址获取视频缩略图(帧)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在服务器上上传了视频.这是电影的预告片.在实时网址的帮助下,我可以将此视频直接播放到我的 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.

这篇关于如何从直播视频网址获取视频缩略图(帧)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆