title: In xamarin Forms how to stop the webview youtube video when go back?
body: <p>how to stop the youtube video in web view when going back are OnDisappearing method is called.</p>
  
  <p>I have the following XAML web view:</p>
  
  <pre><code>&lt;ContentPage.Content&gt;
      &lt;StackLayout&gt;
         &lt;ActivityIndicator x:Name="Progress" IsEnabled="true" IsVisible="true" IsRunning="true" Color="Blue"/&gt;
         &lt;WebView x:Name="webView" VerticalOptions="FillAndExpand" Navigated="Handle_Navigated" Navigating="Handle_Navigating" /&gt;
      &lt;/StackLayout&gt;
  &lt;/ContentPage.Content&gt;
  </code></pre>
  
  <p>and have the following (trimmed) code within my <strong>.cs</strong> file:</p>
  
  <pre><code>        string name =   o.Link;
          string youtubeLink = "https://www.youtube.com/embed/";
          string url = string.Concat(youtubeLink,name);
          webView.Source = url;
  
      }
  
      protected override void OnDisappearing()
      {
          base.OnDisappearing();
          //   webView.IsEnabled = false;
  
      }
  </code></pre>
  
  <p>When the page calls <code>OnDisappearing</code> method I want to stop the webview youtube video but that is currently not what is happening.</p>