我怎么可以把视频的截图,在安卓 [英] How can I take a screenshot of a video, in android
本文介绍了我怎么可以把视频的截图,在安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个视频播放,并在某些时候,我需要暂停视频,采取捕获,并使用那么形象,对其进行修改,在涂料的活动。问题是,如果我尝试保存视频,图像会变黑(试图与setDrawingCacheEnabled(真);)。 是否有可能采取视频截图?
I have a video playing, and at some point, i need to pause the video, take a capture, and use then that image, to modify it, in a paint activity. The problem is that if, i try to save the video, the picture will be black (tried with setDrawingCacheEnabled(true); ). Is it possible to take a screenshot of a video?
推荐答案
你试过ThumbnailUtils.createVideoThumbnail(字符串,INT)?
have you tried ThumbnailUtils.createVideoThumbnail(String, int)?
这篇关于我怎么可以把视频的截图,在安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文