How to play audio from Buffer

To play an audio stream, as far as I tested, you could use

  1. the cordova-plugin-media

or

  1. use the native html5 audio tag

but, on android, in both case, as far as I understood and tested, if the stream least a while after the phone goes idle, the stream itself may stop because of the Android Doze (wich protect the battery use).

I didn’t found a solution about that now, except running something in the background (like with the cordova background plugin, https://forum.ionicframework.com/t/android-audio-tag-stop-streaming-after-a-while ).