Audio integration with the host OS
-
Hi there, I only have one desktop app I simply must have on my ubports phone, which is gmusicbrowser, my music player. I have gotten it to run, and to play music, and that's great. When I connect to bluetooth in my car, gmusicbrowser automatically connects and plays through the bluetooth—awesome!
However, the system volume does not control the volume of the music app that's inside the Libertine container. When I try to control the volume from within gmusicbrowser itself, it says the volume is set to -1% and I can't adjust it.
gmusicbrowser supports multiple audio output methods: gstreamer, mpg123, mplayer, and mpv. I'm currently using mplayer because it worked, and gstreamer didn't work because it couldn't detect an output device.
It looks like ubports uses pulseaudio, which makes me think I should be able to output from gmusicbrowser to the host pulseaudio and then control it like any other audio app. I have seen people talk in this forum about running pavucontrol within Libertine, and maybe that is the solution—I don't know.
In addition to volume, I'd like to be able to use the play, pause, next and previous buttons in ubports' pull-down controls.