PrefaceAlthough Android has built the VideoView component and MediaPlayer class to support the development of video players, the supported formats, performance, and other aspects are very limited, here we will use free Vitamio to create our Android universal player!
StatementWelcome to repost, but please keep the original source of the article :) blog Park: http://www.cnblogs.com farmer UNCLE: http://over140.cnblogs.com
BodyI. Goals
1.1 supported formats
Supports mainstream audio and video formats: mp3, mp4, mkv, avi, 3gp, rmvb, mov, and flv.
1.2 supported Functions
1.2.1 of course, the most important thing is the playing function, including playing control (playing, pause, sound, brightness adjustment, etc)
1.2.2 scan SDcard and display it in the list to search
1.2.3 play network audio and video (http, rtsp, mms)
II. Introduction to Vitamio
Vitamio is a multimedia framework that supports all Android devices. Vitamio works in the same way as Android's default MediaPlayer, but it includes more powerful features and is completely free of charge!
2.1 website
Official Weibo: http://weibo.com/vitamio
Http://vov.io/vitamio/
2.2 success stories
Domestic: VPlayer, pandatv, 321, etc.
Abroad: Tvltaliane, Dizi TV, etc.
2.3 network protocol
Audio and video playback using the following protocols is supported:
* MMS * RTSP (RTP, SDP) * HTTP streaming)
* HTTP Live Streaming (M3U8), Android 2.1 +
2.4 media formatting
Vitamio integrates many audio and video decoding packages. Compared with the default media format built in Android, some of them are listed here:
* Divx/xvid * wmv * flv * ts * rmvb * mkv * mov * m4v * avi * mp4 * 3gp
2.5 subtitles
Vitamio supports displaying built-in or external subtitle formats:
* SubRip (. srt) * Sub Station Alpha (. ssa)/Advanced Sub Station step wiki
* Alpha (. ass)
* SAMI (. smi/. sami) * MicroDVD (. sub/. txt) * SubViewer2.0 (. sub) * MPL2 (. mpl/. txt) * Matroska (.mkv) Subtitle track
2.6 other functions
* Supports * multi-subtitle support for background playback *, including internal or external * multi-platform processor optimization * adjustable Aspect Ratio * Automatic Text Encoding Detection
2.7 license/authorization (Lisences)
Vitamio uses the sevral open-source project. Thank you.
2.7.1 FFmpeg
FFmpeg provides software decoder and multi-channel output (demuxers ). Vitamio uses the FFmpeg code under the LGPLv2.1 license. The code can be downloaded from here.
2.7.2 Universalchardet (it is an automatic page text encoding program of Mozilla)
Universalchardet is the Mozilla encoding detection library. Vitamio uses the Universalchardet code under the MPL license to detect letter and text encoding.
The above is a simple translation of the official introduction.
Iii. Related Articles
Overview of mobile media and mobile collaboration
Developer guide: media formats supported by Android
Android Network Radio Project
Iv. Document Maintenance
Vitamio 3.0 beginner tutorial
End
This series will be another important series related to videos after the C # Video Monitoring series. It is worth noting that Vitamio is developed by Chinese people and widely used abroad, there are also some in China. You are welcome to exchange ideas.