0

I am trying to play a video in the WebView on a Xamarin app. The video runs fine as it is expected to do but the fullscreen option on the controls of the video is disabled.

XAML:

<WebView Source="{Binding Source}" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>

Code:

public object Source
{
    get
    {
        var HTML = new HtmlWebViewSource();
        HTML.Html = $@"<video controls><source src=""{PathToVideo}""></video>";;
        return HTML;
    }
}

Image of the Webview page

S.Patole
  • 47
  • 1
  • 8
  • Does this answer your question? [Webview Video fullscreen](https://stackoverflow.com/questions/61156563/webview-video-fullscreen) – Cfun Sep 30 '20 at 20:26
  • @Cfun It could, but I just switched to using a MediaElement. – S.Patole Sep 30 '20 at 23:26
  • if problem has been solved could you post your solution as answer , it is helpful to others. – ColeX Oct 01 '20 at 04:41

0 Answers0