Integration of Vitamio in Android App

有些话、适合烂在心里 提交于 2019-11-28 06:33:28

问题


I have created an App to stream h264 videos over RTSP. Using Android's videoview i got long buffertimes and a latency around 5 seconds. From what I have read the easiest way to improve this is to use Vitamio SDK. The documentation on their page is very small and I have trouble importing it. This is the official HowTo https://github.com/yixia/VitamioBundle/wiki/How-to-integrate-Vitamio-on-your-own-project%3F

I don't know how to this properly, how do I create the .jar file? Thanks in advance for any help guys


回答1:


I would suggest simplest way to achieve it without jar

1) import Vitamio library in your eclipse.

2) right click on your own project -> Properties -> Android -> Add -> select vitamio library which you have imported in eclipse

3) configure your manifest file by adding an activity declaration as mentioned:

        <activity
        android:name="io.vov.vitamio.activity.InitActivity"
        android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
        android:launchMode="singleTop"
        android:theme="@android:style/Theme.NoTitleBar"
        android:windowSoftInputMode="stateAlwaysHidden" />

4) You are ready to go, for reference you can look at any demo activity from VitamioListActivity project , i.e.: VideoViewDemo.java



来源:https://stackoverflow.com/questions/23606812/integration-of-vitamio-in-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!