Application for Android with Qt/C++
nicolas.dufresne at collabora.com
Tue Jun 23 08:49:10 PDT 2015
Le mardi 23 juin 2015 à 11:58 +0200, Sebastian Dröge a écrit :
> But note that the new signature of that function is a bit different:
> You only need the JNIEnv* and the android.context.Context instance of
> your application.
For the env, see QAndroidJniEnvironment() (* operator). And for the
jobject I believe this is the activity, see androidActivity(). Getting
the activity is asynchronous, so that new API is still very
In a internal project (non-public sorry), I've rewritten this init
function in plane C, using GResource instead of Java equivalent, and
passing the path manually (instead of using JNI to figure-it-out).
Imho, I believe we need gst_static_init() somewhere that would deal
with the non-Android bits in a friendlier way. gst_android_init() could
then we simplified a lot, and only deal with the Android specifics
(which are not needed when running Qt for Android).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: This is a digitally signed message part
More information about the gstreamer-devel