Cerbero build a plugin in Android

Sebastian Dröge sebastian at centricular.com
Tue Jan 13 04:25:45 PST 2015


On Di, 2015-01-13 at 04:05 -0800, nero88 wrote:
> Fine. I add the next code a Android.mk and generate the libgstplugin.so
> include $(CLEAR_VARS)
> LOCAL_MODULE    := gstplugin
> LOCAL_SRC_FILES := gstplugin.c
> LOCAL_SHARED_LIBRARIES := gstreamer_android
> LOCAL_LDLIBS := -llog -landroid
> include $(BUILD_SHARED_LIBRARY)
> now how I can load the plugin? I can't find information about load files *
> .so.
> Also if i add the line of code System.loadLibrary ("libgstplugin") in
> tutorial3.java the application does'nt start.
> I have to do something else?

Yes, libgstplugin.so is not a JNI library so that won't work. You'll
have to use the GstPlugin API to load the .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: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150113/f81966b9/attachment.sig>


More information about the gstreamer-devel mailing list