I want to capture image while recording video using camera2 API.
Two separate demos are available. 1. To capture image and 2. To record video
I tried to com
Create a video thumbnail for a video. May return null if the video is corrupt or the format is not supported.
private void makeVideoPreview() { Bitmap thumbnail = ThumbnailUtils.createVideoThumbnail(videoAbsolutePath, MediaStore.Images.Thumbnails.MINI_KIND); saveImage(thumbnail); }