PrefaceAlthough Android has built-in Videoview components and MediaPlayer class to support the development of video player, but the support format, performance, etc. are very limited, here with you to use the free Vitamio to build their own Android Universal player!
StatementWelcome reprint, but please keep the original source of the article:) Stone Attack Jade: http://www.cnblogs.com/stone4/
BodyFirst, to achieve the goal
1.1 Supported formats
Support the Mainstream AV format: mp3/mp4/mkv/avi/3gp/rmvb/mov/flv, etc.
1.2 Support Features
1.2.1 Of course the most important is the playback function, including playback control (play, pause, sound, brightness adjustment, etc.)
1.2.2 can scan the sdcard, display it with a list, can search
1.2.3 can play Network video audio (HTTP, RTSP, MMS)
Ii. Introduction of Vitamio Project
Vitamio is a multimedia framework that supports all Android devices. Vitamio works in the same way as Android's default MediaPlayer, but includes more powerful features! (Note: Vitamio after commercialization of personal free, corporate fees)
2.1 Website
Official Weibo: Http://weibo.com/vitamio
Official website: http://vov.io/vitamio/
2.2 Success Stories
Domestic: Vplayer, Panda av, 321 audio and video, etc.
Foreign: Tvltaliane, Dizi TV, etc.
2.3 Network Protocols
Supports audio and video playback for the following protocols:
* MMS * RTSP (RTP, SDP) * HTTP streaming (progressive streaming)
* HTTP Live Streaming (m3u8), Android 2.1+
2.4 Media formats
Vitamio integrates a number of audio and video decoding packages, some of which are listed here compared to Android's built-in default media format:
* Divx/xvid * WMV * FLV * TS * RMVB * MKV * MOV * M4V * avi * MP4 * 3gp
2.5 subtitles
Vitamio supports displaying some built-in or external subtitle formats:
* SUBRIP (. SRT) * Sub Station ALPHA (. SSAS)/Advanced Sub Station Shift Wiki
* Alpha (.)
* SAMI (. Smi/.sami) * MICRODVD (. sub/.txt) * SubViewer2.0 (. Sub) * MPL2 (. mpl/.txt) * Matroska (. mkv) Subtitle Track
2.6 Other Features
* Background Play * Multi-track support * Multi-subtitle support, including internal or external * multi-platform Processor optimization * Adjustable aspect ratio * Text encoding automatic detection
2.7 Licensing/Authorization (lisences)
Vitamio used the Sevral open source project to thank them.
2.7.1 FFmpeg
The ffmpeg provides a software decoder and multiple outputs (demuxers). Vitamio uses ffmpeg code under LGPLv2.1 license, and the code can be downloaded from here.
2.7.2 Universalchardet (a program that automatically detects page text encoding in Mozilla)
Universalchardet is the Code detection library for Mozilla. Vitamio uses Universalchardet code under the MPL license to detect alphabetic text encoding.
The above is mainly for the official introduction of a simple translation.
Iii. related articles
Mobile Streaming Media Mobile protocol overview. pdf
Developer Guide for Android supported media formats
Android Internet Radio Project
Iv. Maintenance of the article
Vitamio 3.0 Novice Tutorials
Download
The current Vitamio project is hosted on GitHub: Https://github.com/yixia/VitamioBundle
Tip: GitHub supports git, svn, and direct downloads (right download Zip).
Brief introduction
Vitamio's Chinese name is "Vichy Honey"
Vitamio is an all-in-one multimedia development Framework on an Android platform. With its simple and easy-to-use API interface, Vitamio has won the favor of many developers around the world. To date, more than 1000 applications worldwide have been using Vitamio, covering more than 200 million users.
Vitamio can smoothly play 720P or even 1080P HD MKV,FLV,MP4,MOV,TS,RMVB and other common formats of video, but also on Android support MMS, RTSP, RTMP, HLS (m3u8) and other common video streaming protocols, Includes on-demand and live streaming.
Support ARMV6 and ARMv7 two kinds of ARM CPUs, while the VFP, VFPv3, NEON and other instruction sets are optimized accordingly.
Support Android 2.1+ system, support more than 95% of Android Market. The Android 2.1 system was also basically supported, but no detailed tests were done.
For more Vitamio's introduction, refer to here.
Import using
1, import. After the download comes back, you may find that there is no. Project project files, which can be imported into the project via Android---Existing Android Code into workspace, file--, import, Then change the project name.
2, the Vitamiobundle project as the Android library to introduce the demo project can be used.
Attention:
If it is a Windows user, please put Vitamiobundle and demo project in the same folder, or add the Android library may fail, other issues generally clean to recompile a bit. Please refer to the Error encyclopedia for additional questions.
Follow Vitamio
Official Weibo: Http://weibo.com/vitamio
Official website/Forum: vitamio.org
Vitamio QQ 3 Group: 283274315
Other
1, the official proposed to use the Android library mode Vitamio plugin, in order to facilitate the subsequent upgrade.
2, the latest version of Vitamio is 4.2.1, it is highly recommended to use the new version.
3, based on Vitamio only support more than armv6+ cpu,95% video format support, Description:
a). Unable to play the issue. Use Vplayer to test the link, if the vplayer is not a problem, then vitamio sure is not a problem.
b). There are only two cases where the so file cannot be found: The device is not supported and the decompression decoder package is not executed.
4, Vitamio final ownership for Dazzle (Beijing) Technology Co., Ltd.
End
Vitamio is developed by the Chinese, has been widely used abroad, there are some domestic, welcome to exchange.
Vitamio to build your Android universal player