Search code examples
androidvideoscreenpaintcapture

How can I take a screenshot of a video, in android


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?


Solution

  • Have you tried ThumbnailUtils.createVideoThumbnail(String, int)?