1

A short question:

Suppose you have a video file that is supported on the device (available here, for example).

How would you get an image (or a number of images) of a specific time of the video, to be saved into a Bitmap instance?

Is it also possible to set what size the bitmap would be (so that it won't take a lot of memory, in case the video is of high resolution) ?

android developer
  • 114,585
  • 152
  • 739
  • 1,270

1 Answers1

0
Bitmap bitmap =ThumbnailUtils.createVideoThumbnail(Environment.getExternalStorageDirectory() + "/video.mp4",MediaStore.Video.Thumbnails.MINI_KIND);
deepak825
  • 432
  • 2
  • 8