GStreamer/Java

Sebastian Dröge sebastian at centricular.com
Fri Mar 18 09:23:12 UTC 2016


On Mi, 2016-03-16 at 22:52 -0400, Chuck Crisler wrote:
> What is the preferred way to build a Java app with GStreamer, JNI or
> Java binding? I am working to have the app running on Windows, Linux
> and Android at first, then (after a massive UI re-write) iOS, so I
> would prefer to have something that is somewhat portable. I have done
> some initial work with Android (Thank You Sebastian for the
> tutorials!). Now I am working on Linux and Windows. Working with
> relatively up-to-date versions of GStreamer is important to me
> (looking forward to 1.8 soon)., which suggests to me an approach
> using JNI. If that is the case (JNI), is it reasonable to use the
> GStreamer Android tutorials as a starting point? As a side but
> related question, if you have a Java project defined in Eclipse that
> uses a JNI library, can you build the C library within Eclipse as
> part of the Java project? If so, where should I look for
> documentation? Yes, I realize that Windows and LInux will be very
> different and I am still not sure if I will use Visual Studio (but am
> leaning that way). That thought brings up an interesting next thought
> of doing development in WIndows with VS and porting back to Linux.
> Thoughts anyone?

If you want to target Android, your only choice currently is JNI. There
are GStreamer/Java bindings, but they're using JNA which is not
supported on Android: https://github.com/gstreamer-java
Those are the bindings used by processing.org for example.

They should work fine on Windows/Linux/OSX though.


Ideally there would be JNI based bindings, but those don't exist yet
and I'm not aware of anybody planning to write any.


For Eclipse, it should be able to build C code. It can for Android at
least, and there's also the CDT which allows to do plain C/C++ projects
in Eclipse. How all that works you'll have to find out yourself though,
my experience with Eclipse was many years ago :) Also nowadays Android
is using an IDE that is not based on Eclipse anymore.
-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160318/0b5f64d4/attachment.sig>


More information about the gstreamer-devel mailing list