Vitamio is an all-in-one multimedia development framework on Android and IOS platforms that supports both hardware decoding and GPU rendering.
Vitamio powerful, smooth playback of 720P or even 1080P HD MKV,FLV,MP4,MOV,TS,RMVB and other common formats of video, can also be on Android and IOS cross-platform support MMS, RTSP, RTMP, HLS (m3u8) A variety of common video streaming protocols, including on-demand and live streaming.
Download for 1Vitamio
Official Download:
https://www.vitamio.org/Download/
Official documents:
https://www.vitamio.org/docs/API/
Videoview Controls for 2.Vitamio
Videoview is used to play video files, load images from various sources (such as resources or ContentProvider), and pay attention to calculating video dimensions for use in any layout manager, and it also provides display options such as zooming.
Videoview also provides methods that encapsulate many mediaplayer, such as Getvideowidth, Setsubshown.
Usage of 3.Vitamio
(1) Introduction of the Vitamio framework to Android Studio or Eclipse
(2) Define Videoview in the layout
<io.vov.vitamio.widget.VideoView android:id="@+id/vv" android:layout_width="match_parent" android:layout_height="match_parent" />
(3) Call in Mainactivity
//plug-in Vitamio framework check availability if (! Libschecker.checkvitamiolibs (this )) {return ;} final Videoview vv = (videoview) Findviewbyid (R.ID.VV), Vv.setvideopath (); //set playback path Vv.setonpreparedlistener (new Onpreparedlistener () { @Override public Span class= "Hljs-keyword" >void onprepared (MediaPlayer MP) {Vv.start (); }}); //set the controller for video Vv.setmediacontroller (new Mediacontroller (this ));
(4) Use Vitamio must be in the manifest file additional initialization initactivity
<!-- 初始化InitActivity,固定写法 --><activity android:name="io.vov.vitamio.activity.InitActivity"></activity>
Note: initactivity do not confuse with mainactivity.
Principles of the 4.Vitamio framework
(1) Audio and video decoding principle:
Basically all of them use open source project FFmpeg (C language developed), including many players in the Windows platform.
FFmpeg Source: http://ffmpeg.mplayerhq.hu/
(2) Vitamio is also using the FFmpeg open source project.
Android Video Frame Vitamio Build your own universal player