i am working on listview showing list of video.i am getting url of video from web server.Now i want to create a thumbnail of video using aQuery.i am using this code:
Bitmap bmThumbnail = ThumbnailUtils.createVideoThumbnail("http://"
+ videoList.get(1), Thumbnails.MICRO_KIND);
it is working, but is taking some time while scrolling.
Related
I have a method that returns selected images from the camera or gallery path to MultiBodyPart.Part to be sent to API which is working fine, but at the same time, I need to use this MultiBodyPart.Part and show this in the imageview.
What I am looking for is how can I use MultiBodyPart response to show in my imageview.
I am developing story feature app like instagram or whatsapp but I got stuck somewhere. I am getting image thumbnail from server as URL but when I try to use it . It take some time to load that image.So I want to Load add thumbnail images from url in previous activity and then set that thumbnail from cache.How I can store url images in cache Hashmap or arraylist to use them in next activity.Please help.I am in trouble right now.
You can use Glide for catching the image from URL.
I have this path of video in android - file:///storage/emulated/0/Images/nature.mp4 and I want to get the path of the bitmap of the thumbnail extracted from the video and not the bitmap object itself so that I can load the thumbnail using picasso library like for the images url
Picasso.with(con).load(image_url).into(holder.Img);
I've looked at the similar question on the site but it wasn't clear enough for my case.
I am developping an Android application and I encouter problem to get thumbnail of video.
My question is simple. I know how to get thumbnail for Youtube or Dailymotion but is there a way to do the same for a video like this one : http://download.wavetlan.com/SVV/Media/HTTP/MP4/ConvertedFiles/MediaCoder/MediaCoder_test3_1m10s_MPEG4SP_VBR_516kbps_320x240_25fps_MPEG1Layer3_CBR_320kbps_Stereo_44100Hz.mp4
I want to get a frame at time T for every video.
I tried this :
Bitmap thumb = ThumbnailUtils.createVideoThumbnail(m_Video.getM_Urlvideo(),
MediaStore.Images.Thumbnails.MINI_KIND);
m_Video.getM_Urlvideo() is returning my video url..
It doesn't work, anyone has an idea ?
Thank you
I am developing Android Web app using restfull web Services.I have written Image in my system as jpg file .Now i need to set Image into ImageView.So I have tried like this
ImageView hotelLogo;
hotelLogo = (ImageView) findViewById(R.id.imgViewHotelLogo);
hotelLogo.setImageURI(Uri.parse("D:/images/Image0800.jpg"));
but it doesn't show image in my ImageView.anyone can correct my code?
Use glide or picaso library to load image from server in both also you can load local image