First, Vitamio Introduction
What is 1.1 Vitamio?
Vitamio is the Android platform video audio playback component, supporting the playback of almost format video as well as the mainstream network video streaming (HTTP/RTSP/MMS, etc.), detailed Chinese introduction: here.
Vitamio Official website: http://vitamio.org/
Vitamio Weibo: Http://weibo.com/vitamio
Vplayer Official website: http://vplayer.net
Vitamio Watercress: http://site.douban.com/145815/
1.2 About Vitamio name (excerpt from the official website)
Vitamio from the English word vitamin (vitamin), Hope Vitamio for Android multimedia developers, as Vitmain to the human body is indispensable.
The name of Vitamio comes from vitamin, We hope the importance of Vitamio for Android multimedia developers as Indispensab Le as vitamin for human.
1.3 about the origin of Vitamio (from Watercress official website)
We are a coder, we hate the 烦冗 of Android Multimedia program development, from version to different equipment, just pit Niang test after Samsung, Htc,sony, and brought v880; we think these nasty things are destined to make our lives stupid, New technology God Horse is also no time to study, the most heinous is not to focus on the realization of their own creative app.
Often indulge in the spiritual world to save the world, ordinary coder can also become wonderful. As the first team to study the Android Media tool, we decided to take our Vitamio framework free of charge to help Android multimedia developers realize their creative dreams:D, boys, we are high quality multimedia frameworks from China OH.
First release date: September 2011 release
1.4 Vitamio Related Data
Since September 2011, users download more than 2000W, using Vitamio developers more than 1500, the use of Vitamio products have
domestic : Sohu Video, 91 Panda av (NET Dragon), seabed fishing, Song Hua Limited, etc.
abroad : Pak TV global,madani channel,deen tv,mytrans,fplayer,animeftw.tv,radio nepali,gnc LIVEWELL,MAGICTV Streaming Player Free,hispan TV MOBILE,TV Italy etc.
What are the advantages of 1.5 Vitamio?
a). Strong. Supports hyper-format video and network video playback. (not powerful free also useless, so ranked first)
b). Personal free. ( but enterprise use requires purchase authorization )
(Google play has a variety of vitamio based on the pay player, you can search inside the Vitamio keyword)
c). Seamless integration. The Vitamio Library project can be used only, without the need to download an additional installation decoding package (the previous version of Vitamio is required to download the installation decoding package separately).
d). Simple to use. The call is simple and easy to use.
e). Free customization. The code for the playback interface is fully open to facilitate the customization of the playback interface, progress bar, and so on.
d). Continuous updating. 2012-7-9 has released a new version of the beta version, is expected to release the next version in early August.
e). Service follow-up. Vitamio Official QQ Group (171570336), providing developer communication and discussion. The forum is still under development.
1.6 Vitamio behind the team
Vitamio and Vplayer belong to the same team, the same company (yixia.com). We are in Beijing, the current team has 5 members, 4 development, 1 designers to develop vplayer mainly, Vitamio supplemented:)
1.7 Vitamio and vplayer what relationship?
Vplayer is based on Vitamio development, so vplayer can play Vitamio as well.
OPlayer based on Vitamio development, as an example of the promotion of Vitamio and demonstration products, fully open source code. Although it is an amateur, it still aims at the official release to the market.
1.8 Vitamio and FFmpeg
FFmpeg provides software decoders and multi-channel output (demuxers). Vitamio code can be downloaded from here using the LGPLv2.1 license ffmpeg code.
Https://bitbucket.org/ABitNo/ffmpegandroid
Second, Vitamio download and run
2.1 Download
Vitamio 3.0 Download. (Updated 2012-10-23)
OPlayer 3.0 Download. (2012-10-24 update, no Taocode account please register one)
2.2 Running examples
After unpacking two items: Vitamiobundle and test, where Vitamiobundle is the library (see the Android Library here), run the test example.
Attention:
1. Example using API 16, no installation Upgrade the latest Android 4.1 will be an error, everyone set down to API (Android 4.0) or API (Android 4.0.3).
2. The project file does not have a Gen folder, please add your own.
3. Compile Vitamiobundle first, then compile test. If there are still errors, clean the project and compile it in turn.
4. Modify the Videoviewdemo video path for the video path you want to test. Note that local video uses the Setvideopath method to play network video using the Setvideouri method.
2.3 Integration Examples
You do not want to refer to Vitamio as a library, you can directly copy all the classes and resources in Vitamiobundle to the target project. Note that the SRC, libs, and RES directories are copied in the past and configured in the Androidmanifest.xml.
Successful integration example, you can look at the structure of OPlayer.
2.4 Custom Initactiviy, that is decompression decoding package progress bar interface.
Here's the initactivity code:
public class Initactivity extends activity {public static final String From_me = "fromvitamioinitactivity";
public static final String extra_msg = "extra_msg";
public static final String extra_file = "Extra_file";
Private ProgressDialog MPD;
protected void OnCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate);
GetWindow (). Addflags (WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); New Asynctask<object, Object, object> () {protected void OnPreExecute () {MPD = new ProgressDialog (initactivi
Ty.this);
Mpd.setcancelable (FALSE);
Mpd.setmessage (GetString (Getintent (). Getintextra (Extra_msg, r.string.vitamio_init_decoders)));
Mpd.show (); } @Override Protected Object Doinbackground (Object ... params) {vitamioconnection.initnativelibs (getapplication Context (), getintent (). Getintextra (Extra_file, R.raw.libarm), new Vitamioconnection.onnativelibsinitedlistener () {@ Override public void onnativelibsinitcompleted (String liBpath) {log.d ("Native Libs inited at" + libpath);
Uihandler.sendemptymessage (0);
}
});
return null;
}}.execute ();
Private Handler Uihandler = new Handler () {public void Handlemessage (msg) {Mpd.dismiss ();
Intent src = getintent ();
Intent i = new Intent ();
I.setclassname (Src.getstringextra ("package"), Src.getstringextra ("ClassName"));
I.setdata (Src.getdata ());
I.putextras (SRC);
I.putextra (From_me, true);
StartActivity (i);
Finish ();
}
}; }
Code Description:
Mainly is vitamioconnection.initnativelibs, everybody writes an initialization interface then, the line Chengri call this code can.
Iii. Summary of Vitamio issues
3.1 Website Why can't open?
Because Vplayer.net, Vov.io and so on several websites are our department own maintenance, at present on one person again to change, out of point problem too late to make, you understand.
3.2 Case: Why is it always parked in decoding the decoding?
Case:couldn ' t load Vinit:findlibrary returned NULL
Case:not allowed to bind to service Intent (Act=io.vov.vitmio.ivitamioservice)
Case:io.vov.vitmio.vitamioinstaller$vitamionotfoundexception
Case:java.lang.unsatisfiedlinkerror:library/data/data/null/libs/libvplaer.so not found
Defalut://All kinds of problems that can't be run
Return is basically a problem, the 2012-7-9 release of the Vitamio test version can not coexist with the problem. Cannot coexist with vplayer, cannot coexist with other Vitamio, need to uninstall cleanly. Note that changing the package name (package) is a new apk that needs to be unloaded before it is removed.
3.3 Video/video streaming (RTP, RTSP, etc.) will not play.
There are several possible scenarios:
a). There is a problem with the video itself and you can play it normally with another player.
b). Local speed does not give force/equipment ability to configure too low, this is no way
c) Video source card, the ability of bandwidth is not enough, direct access is also very slow, this also has no way
D). There are problems with Vplayer and Vitamio, and other players are OK, this may be our problem, we are still improving, especially in the online video part, this can be the new release:)
e). Can't wait, then put the video test address and brief description to US (vplayer@yixia.com), we as far as possible to take the time to reply, thanks!
3.4 Vitamio minimum supported version of Android
At the moment we are running the lowest support Android 2.1, the sample project selected Android API level is 4.1, but does not mean that only support more than 4.0, you can see from the Androidmanifest.xml:
<uses-sdk android:minsdkversion= "7" android:targetsdkversion= "/>"
If the compilation can not run, the Vitamiobundle project under the res/values-v11 and Values-v14 deleted, the other part of a slight change can be.
3.5 Why will pop-up prompts box to require installation Vitamio Plugin
Since you download and use the old version of the Vitamio, please uninstall the 2012-7-9 day release of the version, please see this article 2.1 download.
3.6 Do you support hard decoding?
Currently support hard decoding this part is not very mature, also unstable, temporarily do not provide.
3.7 When will the new version be released?
Eh,, please pay attention to our official Weibo (HTTP://WEIBO.COM/VITAMIO)!! At present, focus on Vplayer, the new version of the smooth online should be able to speed up the release of Vitamio, so we can use Vplayer to test.
3.8 E/vitamio (1557): Java.io.FileNotFoundException:No content provider: (2012-8-6)
This is not a mistake, it is normal processing. Now play video is doing this: first the URL as a contentprovider to open, if not open, directly as a URL to open
3.9 Vitamio which instruction sets are supported by the CPU? (2012-09-07)
ARMV6, ARMv6 VFP, ARMv7 VFPV3, ARMv7 NEON (note: The version released in 2012-8-31 does not support ARMV6 is not supported, but the next version of the Cpu,vplayer will be added)
3.10 The problem of a sudden interruption in network video playback
May be the video site has made restrictions, added some can not broadcast address, the current Vitamio processing is not broadcast directly off, subsequent version will be improved, skip directly.
3.11 Drag progress bar appears back frame phenomenon (local playback, for example, to 1:20, but when played, skip to 1:15) "2012-11-20 new"
This is a normal phenomenon, not a problem with the player. The default seek does not guarantee keyframes at any point in time to the most recent keyframe. Unless you're the intra-only coding method. (--from Googlegeek)
Iv. Known Issues and considerations (new version refers to the 2012-8-31 release)
4.1 Confusing project attention, need to ignore Vitamio inside the class library! (2012-8-1 Update)
-keep class io.vov.utils.** {*;}
-keep class io.vov.vitamio.** {*;}
4.2 Cannot use Io.vov.vitamio.provider.MediaProvider in included items
Otherwise, if Vplayer is installed, a conflicting error can not be installed. That is, you can use Vplayer's mediaprovider directly, or write your own scan service, but the name cannot be the same.
V. Other
5.1 Call Vplayer to play the video code:
private void Startplayer (string url, string title) {
Intent i = new Intent ();
I.setcomponent (New ComponentName ("me.abitno.vplayer.t", "me.abitno.vplayer.VideoActivity"));
I.setaction ("Me.abitno.vplayer.action.VIEW");
I.setdata (uri.parse (URL));
I.putextra ("DisplayName", title);
StartActivity (i);
}
The above is a detailed introduction to the Android Vitamio FAQ audio playback component, hoping to help Android develop audio playback for friends.