Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to stop audio on webview when backing out to prior page in app. (iPad )

$
0
0

When viewing a webpage thru a webview that is playing audio, lets say like a youtube video, and I return to the parent page in the app, the audio continues to play. This is happening even though that page is gone. So, are there any ideas how to stop this from playing? I am assuming something needs to be put in the OnDisappearing method on the page with the webview control? I tried to give the Webview control a name in the xaml and set the source property programmatically to another url (this will turn off the audio if it is navigated) but navigation was not kicked in. I am using webview renderers as well and tried to dispose there too, but to no avail. Using Xamarin Forms 1.3.2.6316 on vs 2013 update 5ctp. Thanks in advance.

protected override void OnDisappearing()
{
base.OnDisappearing();
.... what do I put here?
}


Viewing all articles
Browse latest Browse all 58056

Trending Articles