Here is working tutorial-5 example. Code originally came from Sebastian Dröge (slomo) blog. To run this code on Android Studio, you have to make Gradle compile NDK code using .mk files originally made for Eclipse.
Gradle code is made mainly thanks to Gaku Ueada's blog post. For some
more details look at app/build.gradle
.
- Open project with Android Studio (tested with 1.0 version)
- Edit
local.properties
- set SDK and NDK paths - Download GStreamer Android library from freedesktop page. I was using 1.4.4 version from 08-Nov-2014 10:03 (gstreamer-1.0-android-arm-release-1.4.4.tar.bz2). Extract everything somewhere.
- Edit
src/main/jni/Android.mk
file and setGSTREAMER_ROOT_ANDROID
to the path where your extracted Gstreamer library (step 3). - Run