안드로이드 영상 썸네일

Android 2015. 2. 9. 16:43


Bitmap으로 캡쳐해서,

Bitmap thumb = ThumbnailUtils.createVideoThumbnail("file path/url",
                            MediaStore.Images.Thumbnails.MINI_KIND);


BitmapDrawable로 적용.

BitmapDrawable bitmapDrawable = new BitmapDrawable(thumb); 

            mVideoView.setBackgroundDrawable(bitmapDrawable);


http://stackoverflow.com/questions/17079593/how-to-set-the-preview-image-in-videoview-before-playing


원하는 위치를 캡쳐하려면...


: