问题描述
我创建了一个应用程序来通过 RTSP 流式传输 h264 视频.使用 Android 的视频视图,我得到了很长的缓冲时间和大约 5 秒的延迟.从我读过的内容来看,最简单的改进方法是使用 Vitamio SDK.他们页面上的文档非常小,我无法导入它.这是官方的 HowTo https://github.com/yixia/VitamioBundle/wiki/How-to-integrate-Vitamio-on-your-own-project%3F
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
我不知道如何正确执行此操作,如何创建 .jar 文件?在此先感谢您的帮助
I don't know how to this properly, how do I create the .jar file? Thanks in advance for any help guys
推荐答案
我会建议最简单的方法来实现它而无需 jar
I would suggest simplest way to achieve it without jar
1) 在你的 Eclipse 中导入 Vitamio 库
.
2) 右击你自己的项目 -> Properties -> Android -> Add
-> 选择你在 eclipse 中导入的 vitamio 库
2) right click on your own project -> Properties -> Android -> Add
-> select vitamio library which you have imported in eclipse
3) 通过添加活动声明来配置您的清单
文件:
<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) 你准备好了,对于reference
,你可以查看 VitamioListActivity 项目中的任何演示活动,即:VideoViewDemo.java
4) You are ready to go, for reference
you can look at any demo activity from VitamioListActivity project , i.e.: VideoViewDemo.java
这篇关于将 Vitamio 集成到 Android 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!