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?

mpromonet
  • 11,326
  • 43
  • 62
  • 91
Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158

3 Answers3

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.

Darshan Rivka Whittle
  • 32,989
  • 7
  • 91
  • 109
  • What is different between using software library to decoding and using native hardware decoding library that is in android source? – Dr.jacky Oct 05 '15 at 07:53
  • What do you mean by "android update project --path . --name "streamer" --target "android-15" ?!!! I got not found command! – Dr.jacky Oct 11 '15 at 09:23
  • @Mr.Hyde You'll have to install and set up the Android SDK. – Darshan Rivka Whittle Oct 11 '15 at 15:26
  • @Darshan-JosiahBarber I did and added to Environment Variables as ANDROID_HOME – Dr.jacky Oct 12 '15 at 07:35
  • 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 used](http://imgur.com/MF4PZDx) – Abhijeet Apr 01 '16 at 08:29
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 !

Som
  • 1,514
  • 14
  • 21
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).

Community
  • 1
  • 1
Greg
  • 1
  • Does it create an RTSP server? Can you watch the stream with VLC? – eskalera Feb 22 '18 at 20:44
  • 1
    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. – Greg Feb 28 '18 at 09:57