I am playing a YouTube video inside a WebView. I am able to play it, but when the person leaves the screen, I am not able to stop the audio from playing.
I tried various
You should call:
webView.loadUrl("about:blank");
It will destroy all audio/video as well as Javasript objects and stop all running functions on webview