Bug 30071 - WinPhone WebView won't play local video
Summary: WinPhone WebView won't play local video
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-05-14 07:04 UTC by rjcollingham
Modified: 2017-08-29 12:42 UTC (History)
7 users (show)

Tags: windows ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description rjcollingham 2015-05-14 07:04:44 UTC
Showing local images works fine in WebView, but I can't get a local video to play. The same video works when using a remote URL. I have the files set as Content, I have also copied them to isolated storage, I also tried copying the video to Shared/Media.

public App ()
            WebView wv = new WebView();
            wv.HorizontalOptions = LayoutOptions.FillAndExpand;
            wv.VerticalOptions = LayoutOptions.FillAndExpand;
            HtmlWebViewSource wvs = new HtmlWebViewSource();
            wvs.Html = "<html><body><h1>hello world</h1><video width='50%' poster='play.jpg' controls><source src='small.mp4' type='video/mp4'></video></body></html>";
            // works with video source of http://techslides.com/demos/sample-videos/small.mp4
            wv.Source = wvs;
	    MainPage = new ContentPage {
				Content = new StackLayout {
					Children = {

Comment 1 rjcollingham 2015-05-15 03:52:16 UTC
Using XF
Comment 2 rjcollingham 2015-10-19 07:49:08 UTC
Still exists using latest XF 1.5.0
Comment 3 FieldstrikeMobile 2016-03-22 12:38:34 UTC
Does this exist on other platforms or just Windows Phone? I think I may also have this issue on Android
Comment 4 E.Z. Hart [MSFT] 2016-04-01 19:14:23 UTC
This is occurring on Windows Phone 8.1.