I have some videos stored on device locally. And I'd like to use Picasso to handle video thumbnails also along with images. How I can do this?
Seems to be I just need to create my custom Hunter like VideoHunter and use them to create Bitmap from InputStream. But I didn't found any way to set my custom Hunter.
Or fork library and modify BitmapHunter.forRequest is only way to handle video thumbnails in Picasso?
Image loading using Picasso is very easy, you can do it like this way Picasso. get(). load("http://i.imgur.com/DvpvklR.png").into(imageView); and in their website you can get every details. In your case you can parse every image URL and use RecyclerView to show them along with Picasso.
I'm afraid it's too late, but still: Glide library for Android is able to load video thumbnails just from URI/File, pretty much the same way as Images.
So all you need to do is:
Glide.with(Context)
.load(videoFile) // or URI/path
.into(imageView);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With