How to make thumbnail image from dailymotion video - android

I am showing number of dailymotion videos in ListView, i want to try to make thumbnail image from dailymotion video, but i am not getting any way to make thumb.
Have you any idea about it!!!

https://api.dailymotion.com/video/{#id}?fields=thumbnail_medium_url,thumbnail_small_url,thumbnail_large_url
And you have following options and you can pass either one or all:
thumbnail_large_url (320px by 240px)
thumbnail_medium_url (160px by 120px)
thumbnail_small_url (80px by 60px)
https://api.dailymotion.com/video/x26ezrb?fields=thumbnail_medium_url,thumbnail_small_url,thumbnail_large_url
{
"thumbnail_medium_url": "http://s1.dmcdn.net/HRnTi/160x120-JQs.jpg",
"thumbnail_small_url": "http://s1.dmcdn.net/HRnTi/80x60-iBI.jpg",
"thumbnail_large_url": "http://s1.dmcdn.net/HRnTi/x240-oi8.jpg"
}

Related

Store images from url in cache and use them as thumbnail or placeholder like whatsapp.

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.

Android mp4parser - create Track from Bitmap

How to have a video Track from an image (Bitmap) on Android?
I need to add an image at end of my video.. for 5 seconds
Thanks
The terminology for what comes after a video is called a "Post Roll" (or before a video, "Pre Roll"). This will help you in future searching.
If you are attempting to use an Image as your Post Roll, this will not work as it says at the very bottom of their GitHub page.
So what can you do?
As they also say on that page, you can "Append Recordings with Same Encode Settings". So you can encode your image as a video with the:
SAME resolutions
SAME frame-rates
as your main video, then they will chain properly.

Getting Thumbnail from video which is not Youtube, Dailymotion?

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

Getting the blank screen for 2 or 3 seconds while displaying video after image

I am developing one android application in which I am able to play all the videos and Images in SD card.But I am getting the blank screen for 2 or 3 seconds while displaying video after image. I don't want that blank screen, I need to show the video immediately after image. Can anyone tell how to do that?
Try playing video inside onPrepared(), first of all just initialize the VideoView with its path or URI of the video and then play it,
mVideoView.setVideoURI(Uri.parse(path));
mVideoView.setOnPreparedListener(new OnPreparedListener() {
#Override
public void onPrepared(MediaPlayer mp) {
mVideoView.start();
}
});
This seems to happen when you're loading image and video and try to navigate away from image to video before the image.This problem occur when image size and video size is large.so check image and video size.otherwise give permission in android manifest
android:largeHeap="true"

How get Most view video from video list in android ?

I have one listview of videos.
in this given image one button "MostView Video". when i click on this button then i can get list of mostview video.
so how i can get mostview video?
When you see the video then you can store the value in databse then compare it with all other and which 1 (or 10) is highest then they can see in mostview videos.
Girish

Categories

Resources