I'm trying to use the following code which I found from here to save thumbnail of a video at a specific time, but VideoBitmapDecoder doesn't accept int parameter. It only accepts Context or BitmapPool. What should I do?
BitmapPool bitmapPool = Glide.get(getApplicationContext()).getBitmapPool();
int microSecond = 6000000;// 6th second as an example
VideoBitmapDecoder videoBitmapDecoder = new VideoBitmapDecoder(microSecond);
FileDescriptorBitmapDecoder fileDescriptorBitmapDecoder = new FileDescriptorBitmapDecoder(videoBitmapDecoder, bitmapPool, DecodeFormat.PREFER_ARGB_8888);
Glide.with(getApplicationContext()) .load(yourUri)
.asBitmap()
.override(50,50)//
.videoDecoder(fileDescriptorBitmapDecoder) .into(yourImageView);