Created
February 17, 2020 19:04
-
-
Save AlejandroRuiz/2f983b31f169822e7bbc04142f808e6b to your computer and use it in GitHub Desktop.
MediaElement usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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