Android video thumbnail?

I have a video that is stored in a specific folder in the SD card. Currently, I have a path as soon as the parameter (Ex: "sdcard / test / sample.mp4"), using only the URL, I can extract the thumbnail of the image.

I also want to show the video preview screen in android, any of them can serve as an example for this.

thanks

+3
source share
1 answer

ThumbnailUtils is an easy-to-use API for creating thumbnails from arbitrary file system paths. It is available at API level 8.

Check out ThumbnailUtils.createVideoThumbnail :

Bitmap thumb = ThumbnailUtils.createVideoThumbnail(path, MediaStore.Images.Thumbnails.MINI_KIND); 
+11
source

Source: https://habr.com/ru/post/1347789/


All Articles