Hi @Smrithi Surendran ,
The problem is not the dark theme, but the MediaPlayerElement
will have a black background when it starts with a source.
You need to delete source in xaml and add video source after MediaPlayerElement
is loaded, so as to avoid black flickering.
<MediaPlayerElement x:Name="SplashPlayer" Loaded="SplashPlayer_Loaded" Visibility="Visible" Height="200" Width="300" AutoPlay="True"/>
private void SplashPlayer_Loaded(object sender, RoutedEventArgs e)
{
Uri pathUri = new Uri("ms-appx:///Assets/XboxSplashScreen.mp4");
SplashPlayer.Source = MediaSource.CreateFromUri(pathUri);
}
Thank you.