Related to playing videos in Android API
Questions tagged [android-video-player]
541 questions
10
votes
4 answers
get video duration from URL in android app
I'm working on an app where the user can see all the video's information and title that are stored on a SERVER. I'm almost done with it except that no matter how I code it, I cannot get the video duration from a given URL. Lets take this demo video…

Pacheko
- 133
- 1
- 1
- 13
9
votes
7 answers
How to get local video Uri for ExoPlayer 2.x
I have a dog.mp4 video file in res/raw folder, which I want to play with ExoPlayer. I'm trying to figure out how to get video Uri for this line of code from ExoPlayer developers guide (https://google.github.io/ExoPlayer/guide.html):
MediaSource…

wilkas
- 1,161
- 1
- 12
- 34
9
votes
2 answers
Check if android device support 4K video?
I am trying to play a 4K video in my application, but as long as all devices can not play 4K videos I'm having some troubles.
How can I check at runtime if that device support it or not before playing the video?

Ayaan Khan
- 91
- 1
- 3
9
votes
2 answers
How to capture/record clip from Video URL in Android and save to phone
In Android, is it possible to record a short clip (ex: an arbitrary 5-10 seconds in the video) from a Video URL (ex: http://www.test.com/video.mp4)?
For example, I'd like to stream a video (from url) in an Activity and allow the ability to…

code
- 5,294
- 16
- 62
- 113
9
votes
1 answer
What are the file formats that Android VideoPlayer support?
What are the file formats that Android VideoPlayer support?
And the differences between the VideoView and VideoPlayer in Android.
I am looking for on tutorials, videos, forums answers, etc.
Anything related to this...

Praveen
- 90,477
- 74
- 177
- 219
9
votes
1 answer
How to read length of video recorded with MediaRecorder into private app storage directory constructed via context.getFilesDir()?
I am having a weird issue reading the length/duration of a video file recorded with a device's camera by using MediaRecorder. The file is recorded into the application's private storage directory, which is set like…

BVB
- 5,380
- 8
- 41
- 62
8
votes
1 answer
How to remove the black screen that apper before playing the mp4 Video?
I am playing the MP4 in android phone with the below code:
VideoView videoView = (VideoView) findViewById(R.id.VideoView);
// Set video link (mp4 format )
File file2 = new File("/sdcard/Alone.mp4");
Uri video =…

Shreyash Mahajan
- 23,386
- 35
- 116
- 188
8
votes
2 answers
cant convert bytes to KB
I have an android videoplayer which displays all videos on SD card with name and file size, but the size is displayed in bytes and I have not been able to convert it to KB,MB,GB etc.I tried dividing the int value by 1024 but its not working.It…

young wolf
- 139
- 1
- 2
- 11
7
votes
1 answer
How to create streaming video player for large content?
I worked for hours in developing a proper streaming video player in android and quite successful in creating a player which can play small contents such as songs, Trailers etc very fine. But the player shows some unusual behavior for large content…

Jitu
- 284
- 1
- 3
- 15
7
votes
1 answer
Video flashes black just before playing (ExoPlayer)
I'm using ExoPlayer in a RecyclerView.
The way I have it working now is:
Using only one ExoPlayer instance
When the RecyclerView item comes into view, it prepares the player and attaches the PlayerView to the layout
When the RecyclerView item goes…

user849651
- 91
- 4
7
votes
1 answer
how to record video of my application screen programmatically in android
I am developing Android application. In my application, I have to capture a screen animation for few seconds as video in programmatically. Is it possible? When I Googled all the code are for starting camera in video mode or capture the system…

deepa
- 2,496
- 1
- 26
- 43
7
votes
3 answers
how to get video thumb nail from raw folder video on android
in my app i need to display video thumb nail which is stored in res/raw folder. i searched regard it. i get the following code.
int id = **"The Video's ID"**
ImageView iv = (ImageView ) convertView.findViewById(R.id.imagePreview);
ContentResolver…

M.A.Murali
- 9,988
- 36
- 105
- 182
7
votes
2 answers
Android:video as splash screen
I want to play the video as splash screen.I have implement the play video but it show the default control like play,pause and seek etc.I want to remove the
so that the after video finish I need to call the new activity.
MediaController mc = new…

Sameer Z.
- 3,265
- 9
- 48
- 72
7
votes
1 answer
Save rtsp stream in android?
i am working on Rtsp streaming app .Rtsp stream is working fine but now i want to save this in android SD card.i have done lot of google search but cannot find correct solutions.
There are few methods i came across but didn't succeed.
Using FFMPEG…

SAK
- 91
- 6
7
votes
2 answers
How to capture a frame from video in android?
Hi i have made a custom video played in android.with some simple "play","pause","play again" and "capture" button.NOw i have done all this functionalities except "capture".I have seacrched lot many links and googled a lot,But i can't find how to…

jigar
- 1,571
- 6
- 23
- 46