2

I’m building an app in Ionic 6 which needs to play an HLS stream. When the user hides the app (to the background) the stream needs to continue playing. Preferably with the possibility of using the media controls.

For iOS, this isn’t a problem. I can just use the HTML5 audio player and it just works perfect. For Android this won’t work. When I hide the app, the music stops playing (even with backgroundMode enabled).

Does anyone know how to solve this on Android?

Sjors
  • 1,205
  • 1
  • 8
  • 24
  • 1
    Came to the conclusion that, at this moment in time, this just simply isn't possible with Ionic. Switched to React Native with the react-native-track-player plugin, which works great! – Sjors May 03 '22 at 13:54

0 Answers0