I'm trying to use GStreamer, but their tutorials seems to be broken (or made for Eclipse). So I'm trying to run this gst-player from here. I have loaded this project in to the Android Studio. Have included gstAndroidRoot=D\:\\Packages\\gstreamer
in the gradle.properties
.
local.properties
file contains the path to the SDK and NDK like below:
ndk.dir=D\:\\Android\\sdk\\ndk-bundle
sdk.dir=D\:\\Android\\sdk
I have downloaded the gstreamer code from here (which is universal for all the architectures). I have set the environment variable GSTREAMER_ROOT_ANDROID
in my windows development machine where I have extracted the above source codes.
Question 1: Android Studio couldn't able to understand the gstreamer location. It is giving error in package org.freedesktop.gstreamer.play;
in the gst_player\app\src\main\java\org\freedesktop\gstreamer\player\Play.java
file.
How could I link the gstreamer source code to Android Studio? As I have already set the environment variable and set the gstAndroidRoot
in the gradle properties, what else do i have to do?
Question 2: Do i have to compile those .so
files?
In this link, they have mentioned about building the source for creating android specific .so
files. But when i run android update project -p . -s --target X
from the tutorial folder, it says 'android' is not a command. I could see that android.bat
is part of the android sdk (D:\Android\sdk\tools). But even then, executing android.bat doesn't provide update project
options.
Question 3: How could i build the libgstreamer_android.so
file?