Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

WinPhone WebView: can't play local video

$
0
0

Hi, trying to using an html 5 video tag in a WebView on Windows Phone. If I use a internet hosted video it plays fine, if I use the same video stored locally it fails to play with an invalid filename error.

Here is the html snippet. I have tried both loading this from file and also using as a string.

<!DOCTYPE html>
<html>
<body>
    <video width='50%' poster='bunny.png' controls><source src='bunny.mp4' type='video/mp4'></video>
</body>
</html>

The png file (in the same folder as the mp4 file) is visible on screen but the video player gives an error. I have used the IsoStoreSpy explorer to check that all the files are in the correct locations on the phone.

I have tried copying the mp4 file to the shared/media folder under the app's local storage and changing the path, I have tried using file://, I tried setting the htmlsource base url etc all with no joy.

I have this working fine on Android and iOS.

Any suggestions? Thanks


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>