Skip to content

Getting Started

Crossle Song edited this page Feb 13, 2014 · 7 revisions
  1. Clone VitamioBundle release version, use Vitamio as Android library project.

  2. Add the following line to Activity onCreate, Vitamio will initialize decoders.

     public void onCreate(Bundle b) {
         super.onCreate(b);
         if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this))
             return;
         // your code
     }
    
  3. Declare InitActivity in AndroidManifest.xml

     <activity android:name="io.vov.vitamio.activity.InitActivity" 
       android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden"
       android:launchMode="singleTop"
       android:theme="@android:style/Theme.NoTitleBar"
       android:windowSoftInputMode="stateAlwaysHidden"/>
    
  4. Now you can use Vitamio Media API same as Android Media API