Anybody has successfully ported live555 to android?

安稳与你 提交于 2019-11-30 05:30:58

I successfully built the project as follows:

git clone https://github.com/boltonli/ohbee.git
cd ohbee/android/streamer
android update project --path . --name "streamer" --target "android-15"
cp lib/jnix.jar libs/ # This is the only trick
ant debug

The jar was in the lib/ directory rather than libs/.

If that doesn't resolve the issue you were or are having, you'll have to be more specific and share the steps you've taken and what problems you're encountering.

To compile Live555 streaming media for ARM/Linux try following steps:

> cd live
> ./genMakefiles armlinux
> make

Pre-built binary package:

live.2011.06.16-dev-armlinux.tar.bz2

Hope it helps !

Greg

This answer worked for me and I was able to build the project in Android Studio:

However, at runtime, I was getting a java.lang.UnsatisfiedLinkError at the line in MainActivity.java: System.loadLibrary("jnix");

libjnix.so is missing from ohbee/android/streamer/*, but the armeabi binary is in ohbee/android/streamer2/libs/armeabi. When I copied this into my src/main/jniLibs/armeabi, I was able to run the application on Samsung Galaxy Note S3. It streams the camera into an RTPSink instance with a dummy address.

Obviously, targets which are not armeabi will not work (so virtual devices don't work), and I haven't been able to find the source for the jnix libs (only the headers).

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