Developing an application that presents a movie is really easy due to the availability of a dedicated control with a set of useful methods, as you will see in this recipe.
To step through this recipe, you need only the automatically generated project.
Movie.mp4 file in the
Assets directory and add the
MediaElement control to the page by modifying the content of the
MainPage.xaml file as follows:
<Page (...)> <Grid> <MediaElement Source="/Assets/Movie.mp4" Stretch="UniformToFill" AutoPlay="True" AreTransportControlsEnabled="True" VerticalAlignment="Center" HorizontalAlignment="Center" /> </Grid> </Page>
MediaElement is a very useful control that allows media content to be ...