Anybody has successfully ported live555 to android?
Asked Answered
O

3

3

I've been trying to build live555 according to this guide:

https://github.com/boltonli/ohbee/tree/master/android/streamer/jni

as well as using some other guides, all to no avail.

If someone has succeeded in porting live555 to android can you, please, tell me how I can do so?

Outroar answered 30/5, 2012 at 17:12 Comment(2)
what is problem with the build?Grandnephew
Possible duplicate of Live555 on AndroidComparative
C
9

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.

Chapfallen answered 14/6, 2012 at 4:58 Comment(5)
What is different between using software library to decoding and using native hardware decoding library that is in android source?Civvies
What do you mean by "android update project --path . --name "streamer" --target "android-15" ?!!! I got not found command!Civvies
@Mr.Hyde You'll have to install and set up the Android SDK.Chapfallen
@Darshan-JosiahBarber I did and added to Environment Variables as ANDROID_HOMECivvies
For Windows: I had to run android update project --path . --name "streamer" --target "android-15 from command prompt. And the rest from in Git Bash Android Path Configuration that was usedHyperplane
H
2

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 !

Howlend answered 13/6, 2012 at 13:42 Comment(0)
S
0

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).

Sibley answered 11/5, 2016 at 2:55 Comment(2)
Does it create an RTSP server? Can you watch the stream with VLC?Consolation
My build was just a client and I never tried creating a server. Only had a few days to spend before the project was shelved, but was definitely seeing a good flow through to the RTPSink.Sibley

© 2022 - 2024 — McMap. All rights reserved.