<div dir="ltr">Hi everyone,<br><br>I want to make the gst-player Qt app written by Sebastian Dröge work on both Android and iOS.<br><br>(link to the Qt App : <a href="https://github.com/sdroege/gst-player/tree/master/qt">https://github.com/sdroege/gst-player/tree/master/qt</a> )<br><br>On Linux, I first compile all dependencies (including GStreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad...), put them as dependencies of the project and link them to it. <br>On Android, I also first compile all dependencies with the NDK and link them to my Qt project, which will then be using qmake and will package the libraries into my APK.<br><br>In the main.cpp, I have the following line : <br><br>   <i> gst_init(NULL,NULL);</i><br><br>But is seems that it is not called on Android. Here's why I think it is not called:<br><br>I have modified the gstreamer's gst_init function to display glib message when the function is called: <br><br><i>    void<br>gst_init (int *argc, char **argv[])<br>{<br>    g_info("---- GST_INIT ! ----");<br>    GError *err = NULL;<br>    if (!gst_init_check (argc, argv, &err)) { [...]<br>    }<br>}</i><br><br>On Linux, everything works fine, the message is printed when gst_init is called in my main function.<br><br>But on Android, the message doesn't appear in the logcat. (i have an additional library which redirects glib output messages to the logcat).<br><br>But if I call : <br><br>    <i>g_info("---- THIS IS A TEST ----");</i><br><br>directly from my main.cpp, the message is printed in the logcat, which shows that gst_init is NOT called on Android, but the glib logging works as intended.<br><br><br>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 <a href="http://gstreamer_android-1.0.c.in">gstreamer_android-1.0.c.in</a>, which is for some reason, not included in the gstreamer-1.8.1 sources, but available here: <a href="https://cgit.freedesktop.org/gstreamer/cerbero/tree/data/ndk-build">https://cgit.freedesktop.org/gstreamer/cerbero/tree/data/ndk-build</a> <br><br>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.<br><br>I thank you in advance for your answers.<br><br>Regards,<br><br>Allan.<br></div>