Define a server link,
String path = "http://yourSeverLink/foldername/test.mp4";
then take one image for example
ImageView video_thumbnail;
Bitmap bm;
and define in the onCreate method.
video_thumbnail = (ImageView) findViewById(R.id.video_one);
now use this to get thumbnails,
bm = ThumbnailUtils.createVideoThumbnail(path,
MediaStore.Images.Thumbnails.MICRO_KIND);
// For setting that thumnail to imageview use this below code
video_one.setImageBitmap(bm);
source
share