Skip to content

Instantly share code, notes, and snippets.

@AlejandroRuiz
Created February 17, 2020 19:04
Show Gist options
  • Save AlejandroRuiz/2f983b31f169822e7bbc04142f808e6b to your computer and use it in GitHub Desktop.
Save AlejandroRuiz/2f983b31f169822e7bbc04142f808e6b to your computer and use it in GitHub Desktop.
MediaElement usage
<MediaElement
x:Name="_mediaElement"
HeightRequest="200"
Aspect="{Binding Aspect}"
AutoPlay="{Binding AutoPlay}"
IsLooping="{Binding IsLooping}"
KeepScreenOn="{Binding KeepScreenOn}"
ShowsPlaybackControls="{Binding ShowsPlaybackControls}"
Source="{Binding Source}"
VerticalOptions="Start" />
var mediaElement = new Xamarin.Forms.MediaElement();
mediaElement.Source = MediaSource.FromFile("/local/MyVideo.mp4");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment