When our AmazonWebView is resumed after our Activity was in the background, we see a "Press (play/pause) to continue" text in the center of our WebView, and we have no way of dismissing it.
This occurs when our website has created an <audio> element, and has loaded a "src" file for it, even if the audio was never .play()'ed.
It also occurs even if we resume playing the audio in onvisibilitychanged (and even if we wait 5s before playing the audio again, to see if AmazonWebView wasn't picking up the play state change).
If we set had been playing audio, but set the audio element's src to "" onvisibilitychanged to hidden, the text still appears on resume. If we had been playing audio, but set the audio element's src to "" *well before* backgrounding the app, the text *still* appears.
This occurs even if I switch to using android.webkit.WebView.
Our intent for the <audio> element is to play music for our game. We want it to pause when the app is in the background, and we have that working fine.
Any tips on how to prevent this "Press (play/pause) to continue" from showing up, without resetting our audio element? We would like to resume playback when our Activity is resumed.
At this point it sounds like our best bet is to not play audio in the WebView, but rather intercept these audio commands from our WebView and play them in an Android MediaPlayer. I'm hoping we don't have to do this!