title: How to stop video playing in WebView
body: <p>I work on a Xamarin.Forms app (UWP!). It has a Master-Details architecture. The Master page has a ListView, and each item in it opens a corresponding Detail page. The first Detail page has only a WebView that plays a YouTube video upon loading. The second Detail view has just a placeholder label for now.</p>
  <p>Where I switch from first Detail page to the second, the sound of the video from the first Detail page is still heard. And when I switch back to the first Detail page, the video loads again, and now I hear two voices. How can I stop the video upon switching to the second Detail page and resume when going back? If this is not possible, how can I just stop the video upon leaving its Detail page?</p>
  <p>I guess I could do something in an overridden OnDisappearing() method of the detail page:</p>
  <pre><code>    protected override void OnDisappearing()
      {
          MyWebView.NavigateToString(&quot;&quot;); // This does not work, as NavigateToString() is not part of WebView. 
          base.OnDisappearing();
      }
  </code></pre>
  <p>What can I use to stop playing video in WebView?</p>