cordova-plugin-streaming-media
cordova-plugin-streaming-media copied to clipboard
Audio stops when you turn off the screen and a few minutes pass on Android >=9
What version of Streaming-Meda-Cordova-Plugin are you using?
The latest
What version of Cordova are you using? I use capacitor 4 and the awesome-cordova plugins (latest)
What devices are affected? Android >=9
Please describe the issue in detail, with relevant code samples I have been testing this connector and the truth is that it works very well but I have observed a behavior that I don't know if it can be modified.
On Android 9 or higher, you noticed that if you play audio and put the app in the background, while the screen is on (keepWake behavior) the audio works fine but if you lock or turn it off, the audio stops after a few minutes. Is there no way to keep playing the audio and modify the behavior of the OS to ignore this power saving feature?
In my case it is to play a radio streaming and it is not an adequate behavior.
What did you expect to happen?
Let it work like now but also with the screen locked or turned off until the user ends this behavior
What actually happened? The audio was made for a few minutes.