Basically, I want to send a track/list of tracks to be played with media controls, and after player finishes playing I want it to fetch new list of tracks and play them. Unfortunately, on Android it causes problems if I lock my phone. After a few minutes of playback it gives me a E/MediaPlayerNative( 9930): error (-38, 0) , the media controls disappear, and player stops playing. However, what's interesting is that it comes back to normal if I reopen the app.
I am not sure if it's an error on my part or it is a bug because I might have missed some way of adding tracks to the queue efficiently, so I put it as HELP.
I tried implementing the background playback on Android. Here I built the simplest recreation of the issue:
Basically, I want to send a track/list of tracks to be played with media controls, and after player finishes playing I want it to fetch new list of tracks and play them. Unfortunately, on Android it causes problems if I lock my phone. After a few minutes of playback it gives me a
E/MediaPlayerNative( 9930): error (-38, 0)
, the media controls disappear, and player stops playing. However, what's interesting is that it comes back to normal if I reopen the app.I am not sure if it's an error on my part or it is a bug because I might have missed some way of adding tracks to the queue efficiently, so I put it as HELP.