From d9b7b49241d9bb18fb61f1508dc2376a091d787e Mon Sep 17 00:00:00 2001 From: Rafael Rosa Date: Tue, 8 Aug 2023 19:08:26 -0300 Subject: [PATCH] chore: fix references --- .../NestedPages/MediaPlayerElementSample_NestedPage5.xaml.cs | 5 +++-- .../Views/SamplePages/MediaPlayerElementSamplePage.xaml.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Uno.Gallery/Uno.Gallery.Shared/Views/NestedPages/MediaPlayerElementSample_NestedPage5.xaml.cs b/Uno.Gallery/Uno.Gallery.Shared/Views/NestedPages/MediaPlayerElementSample_NestedPage5.xaml.cs index 77b5d5665..bfd5887d0 100644 --- a/Uno.Gallery/Uno.Gallery.Shared/Views/NestedPages/MediaPlayerElementSample_NestedPage5.xaml.cs +++ b/Uno.Gallery/Uno.Gallery.Shared/Views/NestedPages/MediaPlayerElementSample_NestedPage5.xaml.cs @@ -1,4 +1,5 @@ -using System; +using MediaPlayerLocal = Windows.Media.Playback.MediaPlayer; +using System; using System.Collections.Generic; using Windows.Foundation.Metadata; using Windows.Media.Core; @@ -36,7 +37,7 @@ private void InitializePlaybackList() { if (MediaPlayerElementSample5.MediaPlayer == null) { - MediaPlayerElementSample5.SetMediaPlayer(new Windows.Media.Playback.MediaPlayer()); + MediaPlayerElementSample5.SetMediaPlayer(new MediaPlayerLocal()); } MediaPlayerElementSample5.Source = MediaSource.CreateFromUri(new Uri("https://uno-assets.platform.uno/tests/videos/Mobile_Development_in_VS_Code_with_Uno_Platform_orDotNetMAUI.mp4")); } diff --git a/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/MediaPlayerElementSamplePage.xaml.cs b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/MediaPlayerElementSamplePage.xaml.cs index de9e5aeeb..1651530c9 100644 --- a/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/MediaPlayerElementSamplePage.xaml.cs +++ b/Uno.Gallery/Uno.Gallery.Shared/Views/SamplePages/MediaPlayerElementSamplePage.xaml.cs @@ -14,7 +14,7 @@ public MediaPlayerElementSamplePage() Loaded += MediaPlayerElementSamplePage_Loaded; } - private void MediaPlayerElementSamplePage_Loaded(object sender, RoutedEventArgs e) + private void MediaPlayerElementSamplePage_Loaded(object sender, Microsoft.UI.Xaml.RoutedEventArgs e) { if (!ApiInformation.IsPropertyPresent("Windows.Media.Playback.MediaPlaybackList", "Items")) {