由网友(④年之前,我们相遇◆)分享简介:我有一个视频播放,并在某些时候,我需要暂停视频,采取捕获,并使用那么形象,对其进行修改,在涂料的活动。问题是,如果我尝试保存视频,图像会变黑(试图与setDrawingCacheEnabled(真);)。是否有可能采取视频截图?I have a video playing, and at some point, i...
我有一个视频播放,并在某些时候,我需要暂停视频,采取捕获,并使用那么形象,对其进行修改,在涂料的活动。问题是,如果我尝试保存视频,图像会变黑(试图与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)?
相关推荐
最新文章