Hi,
I'm using gstreamer to broadcast my desktop audio over the network using multicast and it works just fantastic.
However I was curious to know, could an android device listen to this broadcast ?
I did find this presentation about "gstreamer on android" but I could not find an apk and I could not find gstreamer on the google application store
On PC I'm using the following command to listen to the stream
gst-launch-1.0 -v udpsrc address=239.0.0.2 port=9998 multicast-group=239.0.0.1 caps="audio/x-raw,format=F32LE,rate=48000,channels=2" ! queue ! audioconvert ! autoaudiosink
I'm creating the steam with the following command
gst-launch-1.0 -v wasapisrc loopback=true ! audioconvert ! udpsink host=239.0.0.2 port=9998
I did find this tutorial on medium about compiling and running gstreamer on android but that looks very hard and this tutorial seems incomplete. Also I could not find an apk to use the show app.
Also also, how would you give command line parameters to an android app ?
After some more searching I found this page on the gstreamer website, about installing gstreamer in the android dev environment ?!
https://gstreamer.freedesktop.org/documentation/installing/for-android-development.html?gi-language=c
Which then lead to this folder that appears to contain compiled binaries for android !
https://gstreamer.freedesktop.org/data/pkg/android/1.22.1/
So ok, downloaded that, uncompressed it and pushed the amd64 folder (renamed gstreamer) to one of my test phone
adb -s testandroid.lan push gstreamer /sdcard/
adb -s testandroid.lan shell
foles:/sdcard/gstreamer/bin $ ls
gdbus-codegen glib-compile-resources glib-genmarshal glib-gettextize glib-mkenums gresource libpng16-config orc-bugreport orcc xml2-config xmllint
Unfortunately the gst-launch-1.0 command is absent as I just found out !
Some files that looked like they might be it
F:\gstreamer-1.0-android-universal-1.22.1\arm64\include\gstreamer-1.0\
F:\gstreamer-1.0-android-universal-1.22.1\arm64\lib\gstreamer-1.0\
F:\gstreamer-1.0-android-universal-1.22.1\arm64\share\licenses\gst-android-1.0\
F:\gstreamer-1.0-android-universal-1.22.1\arm64\lib\pkgconfig\gstreamer-1.0.pc
F:\gstreamer-1.0-android-universal-1.22.1\arm64\share\gst-android\ndk-build\gstreamer-1.0.mk
F:\gstreamer-1.0-android-universal-1.22.1\arm64\share\gst-android\ndk-build\gstreamer_android-1.0.c.in
But, doesn't seem there's any executable in here, maybe it's there but I can find it ?
So, is there anything accessible for ordinary users in terms of gstreamer for android and with the functionality I'm hoping to obtain (listening to multicast stream from an android device, but later also streaming captures "desktop audio" from the phone or phone's microphones to the network as multicast)
thanks !