<UserControl
    x:Class="FoxTube.VideoPlayer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls1="using:FoxTube.Controls"
    xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"
    xmlns:foxtube="using:FoxTube"
    mc:Ignorable="d"
    d:DesignHeight="1080"
    d:DesignWidth="1920"
    RequestedTheme="Dark">

    <Grid Background="White" Name="grid">
        <MediaElement Name="videoSource" AreTransportControlsEnabled="True" PosterSource="ms-appx:///Assets/videoThumbSample.png" CurrentStateChanged="VideoSource_CurrentStateChanged" MediaOpened="VideoSource_MediaOpened" VolumeChanged="VideoSource_VolumeChanged">
            <MediaElement.TransportControls>
                <foxtube:PlayerControls IsCompactOverlayButtonVisible="True" IsCompactOverlayEnabled="True"
                                        IsFullWindowButtonVisible="True" IsFullWindowEnabled="True"
                                        IsSkipBackwardButtonVisible="True" IsSkipBackwardEnabled="True"
                                        IsSkipForwardButtonVisible="True" IsSkipForwardEnabled="True"/>
            </MediaElement.TransportControls>
        </MediaElement>
        <MediaElement Name="audioSource" Width="0" AreTransportControlsEnabled="False" Visibility="Collapsed" Height="0" VerticalAlignment="Top" HorizontalAlignment="Left" CurrentStateChanged="AudioSource_CurrentStateChanged" MediaOpened="AudioSource_MediaOpened"/>
    </Grid>
</UserControl>
