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

Playing mp4 File form local using Xamarin Forms

$
0
0

Hi,

I have Xamarin forms shared project in which I am trying to play a mp4 file by specifying the WebView source in code behind file of a xaml page. Following is the iframe code which is enclosed in html and body tags and passed as WebView source:

< iframe allowfullscreen="" frameborder="0" height="295" mozallowfullscreen="" src="file://myVideo.mp4" webkitallowfullscreen="" width="300"/>

Further, this video file is placed in "Resource" folder in iOS as bundle resource and "Resources/drawable" folder in Andriod part of project.
Any suggestions on how to play the local video file in xaml.


Viewing all articles
Browse latest Browse all 58056

Trending Articles