How get Most view video from video list in android ? - 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

Related

How to make thumbnail image from dailymotion video

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"
}

How can i trim an existing video in android ?

i have an activity where i display a video in Video view,Video view takes half of my screen, and i want in the other half to display frame by frame images(thumbnails) and to be able to trim the video in 10-15 seconds.
I have done a lot of research on google but i can't find a solution, please help it is very important ! where can i get a tutorial about this ?
this is how i show video on activity:
video_holder = (VideoView)findViewById(R.id.display_video);
Intent intent = getIntent();
String ur = intent.getStringExtra("videocrop");
Uri vid_uri = Uri.parse(ur);
video_holder.setVideoURI(vid_uri);
video_holder.start();
Try mp4parser library and you see ringdroid for audio

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.

How to implement gallery when data(Images and audio path) are coming from server, with swipe on it?

I have implemented gallery which is showing only images right now,but i have to display both images and audio files having swipe option on it.On swipe it has to show next image/audio,all the data(image/audio path) are coming from server.Any example or code is much appreciated.
Thank you in advance.
To achieve it :
1 : Create a simple ViewPager and set adapter which will contain a view and your audio file.
-http://developer.android.com/training/animation/screen-slide.html
Use Lazy loading for image and download audio file in your sd-card and show loader on view while its loading.
-https://github.com/novoda/image-loader
-https://github.com/wuman/AndroidImageLoader
If below link is help ful then you can use it.
https://github.com/Trinea/android-common
for download audio file :
http://www.coderzheaven.com/2012/04/29/download-file-android-device-remote-server-custom-progressbar-showing-progress/
After download audio file you can play it.
And please mention a check to download only undownloaded audio.

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

Categories

Resources