From 50cff71bc38215c57ffeb7843f5ee3fb7d9b64ea Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Thu, 30 Mar 2023 21:07:11 -0400 Subject: [PATCH] feat: Add extensibility support for Windows.Media.Playback.MediaPlayer --- build/PackageDiffIgnore.xml | 23 ++ .../MediaPlaybackSession.cs | 26 +-- .../Windows.Media.Playback/MediaPlayer.cs | 148 ++++++------- .../MediaPlayerFailedEventArgs.cs | 39 ---- .../MediaPlayerRateChangedEventArgs.cs | 18 +- .../PlaybackMediaMarkerReachedEventArgs.cs | 17 -- .../Playback/IMediaPlayerEventsExtension.cs | 88 ++++++++ .../Media/Playback/IMediaPlayerExtension.cs | 162 ++++++++++++++ .../Media/Playback/MediaPlaybackSession.cs | 27 +-- .../Media/Playback/MediaPlayer.Android.cs | 7 +- .../Playback/MediaPlayer.Events.others.cs | 103 +++++++++ src/Uno.UWP/Media/Playback/MediaPlayer.cs | 18 +- .../Media/Playback/MediaPlayer.iOSmacOS.cs | 9 +- src/Uno.UWP/Media/Playback/MediaPlayer.net.cs | 11 - .../Media/Playback/MediaPlayer.others.cs | 197 ++++++++++++++++++ .../Playback/MediaPlayerFailedEventArgs.cs | 27 ++- .../MediaPlayerRateChangedEventArgs.cs | 14 ++ .../PlaybackMediaMarkerReachedEventArgs.cs | 14 ++ src/Uno.UWP/Uno.netcoremobile.csproj | 2 +- 19 files changed, 722 insertions(+), 228 deletions(-) create mode 100644 src/Uno.UWP/Media/Playback/IMediaPlayerEventsExtension.cs create mode 100644 src/Uno.UWP/Media/Playback/IMediaPlayerExtension.cs create mode 100644 src/Uno.UWP/Media/Playback/MediaPlayer.Events.others.cs delete mode 100644 src/Uno.UWP/Media/Playback/MediaPlayer.net.cs create mode 100644 src/Uno.UWP/Media/Playback/MediaPlayer.others.cs create mode 100644 src/Uno.UWP/Media/Playback/MediaPlayerRateChangedEventArgs.cs create mode 100644 src/Uno.UWP/Media/Playback/PlaybackMediaMarkerReachedEventArgs.cs diff --git a/build/PackageDiffIgnore.xml b/build/PackageDiffIgnore.xml index 380d0a07b141..efd16f1502f9 100644 --- a/build/PackageDiffIgnore.xml +++ b/build/PackageDiffIgnore.xml @@ -9392,6 +9392,29 @@ + + + + + + + + + + + + + + + + + + + + + + +