Gstreamer examples in Android Studio

Viewed 11394

I have been trying to get Gstreamer working in Android studio, following their tutorials, see for example here:

https://gstreamer.freedesktop.org/documentation/tutorials/android/link-against-gstreamer.html

But in the latest Android studio there is no jni/Android.mk. Where do I put the code at the end of that web page?

Should it go in the CMakeLists.txt? Or should something different go in there?

Or do I just make an Android.mk file, and if so, where (as there is no jni folder, only a cpp folder)? And how do I tell Android studio where to find my Android.mk file?

Thanks!

2 Answers

After a few days with struggling, I found that the gstreamer tutorial docs have been updated to use the gradle build system. You can see a full working example in https://cgit.freedesktop.org/gstreamer/gst-docs/, see commit from 14 June 2018, 'Android tutorials: add gradle build system'

Related