Picasso Image Upload Library: How to Upload Video Thumbnails

I have some videos stored locally on the device. And I would like to use Picasso to process video thumbnails along with images. How can i do this?

It seems I just need to create my custom Hunter as a VideoHunter and use them to create a Bitmap from an InputStream . But I did not find a way to install my custom Hunter.

Or is the fork library and modifying BitmapHunter.forRequest just the way to handle video thumbnails in Picasso?

+6
source share
1 answer

I'm afraid it is too late, but still: the Glide library for Android is only able to download video thumbnails from a URI / File, much like images.

So all you have to do is:

 Glide.with(Context) .load(videoFile) // or URI/path .into(imageView); 
+2
source

All Articles