Xamarin WebView problem with html5 video tag

Xamarin WebView problem with html5 video tag

BY 27 Mar 2019 Tizen .NET

Hi All, 
        I am unable to load video using html5 video tag on Xamarin webview.


   Using following configrations :-

  • Microsoft Visual Studio 2017 
  • Tizen.NET.TV – 5.5.0.4922
  • Xamarin.Forms – 3.6.0.264807
  • Tizen Emulator – tv-samsung-5.0

     Code snippet :- 

       var htmlSource = new HtmlWebViewSource(); 
       htmlSource.Html = @”<!DOCTYPE html><html><body><video width=’320′ height=’240′ src=’video_sample.mp4′ controls></video></body></html>”;                         htmlSource.BaseUrl = “my resource folder ftp path”;
       webView.Source = htmlSource;

 

Written by