Android issue with Gst-Player and Qt Framework

Sebastian Dröge sebastian at centricular.com
Fri Jun 3 05:33:11 UTC 2016


On Do, 2016-06-02 at 15:56 +0200, Allan Elkaim wrote:
> 
> After looking up a bit on the internet, I found that there was a
> gst_android_init function, but it doesn't seem to be available in the
> gstreamer sources, the only reference to this function I've found is
> from a file called gstreamer_android-1.0.c.in, which is for some
> reason, not included in the gstreamer-1.8.1 sources, but available
> here: https://cgit.freedesktop.org/gstreamer/cerbero/tree/data/ndk-bu
> ild 
> 
> I am very confused by this, and I know I'm not taking the easy way by
> wanting only a Qt App instead of two different codes for two
> different targets, but could someone clarify this for me ? I really
> don't understand what is going on here.

I would recommend that you first take a look at how the build process
works for normal GStreamer Android applications. We have some
integration into Android's ndk-build that will
a) generate a libgstreamer_android.so that contains GStreamer, all
dependencies and static versions of all plugins selected in Android.mk
b) generates a corresponding gstreamer_android.c from the above linked
file, which contains gst_android_init(). That one calls gst_init() but
also initializes all the plugins and does setup of lots of Android
specific things (including a GLib log handler btw). It also adds a
GStreamer.java which provides a Java method to call the
gst_android_init() C function but that's not needed.


For integration with Qt, you have to use the above and call into the
gst_android_init() inside the libgstreamer_android.so.

-- 
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/20160603/1ddfa359/attachment-0001.sig>


More information about the gstreamer-devel mailing list