Hello everyone, I want to programmatically create a thumbnail while the video is uploading process and save it for that thumbnail in my firebase storage. I have successfully done to create the thumbnail in large HD IMAGES, but when I tried to create a thumbnail in Video, sometimes my application is crashed, also
Glide.with(context).load(filePath).error(R.drawable.error).into(imageView);
or
Bitmap thumb = ThumbnailUtils.createVideoThumbnail(file.getAbsolutePath(), MediaStore.Video.Thumbnails.MINI_KIND);
imageView.setImageBitmap(thumb);
also not working, also I want to show the thumbnail of the video but still does not show any values.
And The Bitmap shows me a null value.
Anybody, Could You Please Help Me To Solve this problem.