Android Video Frame Vitamio Build your own universal player

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.