Hello all,
I'm facing a problem here with webviews: when running a mediaelement inside a WebView, to finish the activity isn't finishing the streaming. And when starting again the activity I'm getting two instances of streaming, many times blocking each other and generating strange behaviors.
How can I finish the webview media process running inside a webview?
I tested to load a blank page before finishing or pausing the activity but this generates a limitation to a very interesting use that is the capacity of a webview to run in background (at least for some time), maintaining for example a music when the user checks other apps or screens.
So, I must to have a way to reference the webview instance of the last activity open and, if exists, finish the webview streaming before starting a new one... any idea? Help!
I'm facing a problem here with webviews: when running a mediaelement inside a WebView, to finish the activity isn't finishing the streaming. And when starting again the activity I'm getting two instances of streaming, many times blocking each other and generating strange behaviors.
How can I finish the webview media process running inside a webview?
I tested to load a blank page before finishing or pausing the activity but this generates a limitation to a very interesting use that is the capacity of a webview to run in background (at least for some time), maintaining for example a music when the user checks other apps or screens.
So, I must to have a way to reference the webview instance of the last activity open and, if exists, finish the webview streaming before starting a new one... any idea? Help!