← Back to team overview

ubuntu-phone team mailing list archive

Re: Browser audio will stop if screen is locked or app is switched

 

On Fri, Mar 4, 2016 at 12:46 AM, Peter Bittner <peter.bittner@xxxxxxx> wrote:
> Cool, that actually works with web apps, sweet!  Now I've enabled
> sound-always-on in 2 of my apps, nice! [1,2]
>
> Oli, is this feature also available with your ogra container? In
> another web app I'm using the qmlscene executable [3]. Any easy method
> the get audio working with the media-hub here too?

All the --enable-media-hub-audio parameter does in the webapp
container is set the value of the OXIDE_ENABLE_MEDIA_HUB_AUDIO
environment variable to 1. AFAIK there’s no way to do that in pure
QML, but with a lightweight C++ wrapper for your app, you could
achieve the same result (see
https://doc.qt.io/qt-5/qtglobal.html#qputenv).

HTH,

 Olivier


Follow ups

References