Skip to content

Example application using RTSP on android, with a gradle build system

Notifications You must be signed in to change notification settings

centricular/android_rtsp_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android GStreamer sample player application

Download and extract the universal GStreamer Android binaries to a directory of your choice.

https://gstreamer.freedesktop.org/data/pkg/android/

Edit gradle.properties in order to set gstAndroidRoot to point to the unpacked GStreamer Android binaries.

Build and deploy on the command line

To build and deploy the rtsp example to your device, use a command similar to:

$ 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.rtsp_example/.RTSPExample

To see the GStreamer logs at runtime:

$ adb logcat | egrep '(gst)'

Build and run from Android Studio

Launch Android-studio, opening this folder as a project.

The project should build automatically, once it has done successfully, it should be possible to run the project with Run > Run 'app', provided a device is attached and USB debugging enabled.

The logs can be seen in the logcat tab.

About

Example application using RTSP on android, with a gradle build system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published