gstreamer/subprojects/gst-examples/playback/player/android
Matthew Waters ec666df016 examples/player/android: add missing dummy.cpp
allows libc++_shared.so to be placed in the application

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2065>
2022-03-29 19:35:29 +01:00
..
app examples/player/android: add missing dummy.cpp 2022-03-29 19:35:29 +01:00
gradle/wrapper examples/player/android: update for android changes 2022-03-29 15:19:18 +01:00
.gitignore Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
build.gradle examples/player/android: update for android changes 2022-03-29 15:19:18 +01:00
gradle.properties Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
gradlew Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
gradlew.bat Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
README.md Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00
settings.gradle Move files from gst-examples into the "subprojects/gst-examples/" subdir 2021-09-24 16:15:58 -03:00

Android GStreamer sample player application

Build and deploy

First of all you need to replace the gold linker with bfd in the gst-android-1.14/armv7/share/gst-android/ndk-build/gstreamer-1.0.mk See also this NDK issue

Then to build and deploy the player app to your device, use a command similar to:

$ GSTREAMER_ROOT_ANDROID=/path/to/gst-android-1.14/ PATH=~/dev/android/tools/bin:~/dev/android/ndk-bundle:$PATH ANDROID_HOME="$HOME/dev/android/" ./gradlew installDebug

Run the application on the device

$ adb shell am start -n org.freedesktop.gstreamer.play/.Play http://ftp.nluug.nl/pub/graphics/blender/demo/movies/Sintel.2010.720p.mkv

To see the GStreamer logs at runtime:

$ adb logcat | egrep '(gst)'