I have a .mov file for a custom progress in my application and i have to display it using a ImageView.
I have tried all the solutions mentioned in below link but nothing seems to be working:
Load an image from assets folder
Bitmap thumb = ThumbnailUtils.createVideoThumbnail("file:///android_asset/setting_up_profile.mov",
MediaStore.Images.Thumbnails.FULL_SCREEN_KIND);
ImageView iv = (ImageView) findViewById(R.id.imgProgress);
iv.setImageBitmap(thumb);
And
InputStream stream = context.getAssets().open(path);
Drawable d= Drawable.createFromStream(stream, null);--> d is returned as null
Can anybody help me how can i show this .mov file or should i move it from assets to raw or drawables.