Android Question What is the simplest type of video file that can play on videoview

Ajay Kakar

Member
Licensed User
Longtime User
Hi, I have an app done in which the only part left is to play a video file. It does not matter what type of video file it is. It can be avi, wmv, Mp4 ... any type does not matter. As long as it will work with the videoview object. It would be great if I can have the file or a link to a sample file.

My app will be reading the file from my webserver. The app owners will upload the file according the specification i give for the video file to the webserver.

Thanks in anticipation.

Ajay
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
Please see the Android Docs for the official word on supported media types. Toward the bottom of the page you will find a table with "video encoding recommendations" for differing quality of video.
I'm finding that I have the same problem, my Nexus 7 won't play half the files that my Galaxy S3 will play. From what I've researched, I believe the best and most recognised format to use is H.264 Baseline profile with AAC-LC audio in a .mp4 container.

I'm currently looking at what can be done to increase the number of CODEC's a device supports and will be posting my own question soon.

Regards,
RandomCoder
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…