audioInBackground

val audioInBackground: BackgroundPolicy(source)

Parameters

audioInBackground

what an audio element does when the app leaves the screen, on Android and iOS. BackgroundPolicy.PauseAll, the default, pauses it and plays it again on return. BackgroundPolicy.ContinueAudio keeps the sound, which on Android also needs the app's own media notification to keep the process alive. A desktop window keeps playing when it is hidden, as desktop players do.