File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,14 @@ void OnFullscreenButtonClick(object? sender, PlayerView.FullscreenButtonClickEve
121121 isFullScreen = true ;
122122 RemoveView ( relativeLayout ) ;
123123 layout ? . AddView ( relativeLayout ) ;
124- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
124+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
125125 }
126126 else
127127 {
128128 isFullScreen = false ;
129129 layout ? . RemoveView ( relativeLayout ) ;
130130 AddView ( relativeLayout ) ;
131- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
131+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
132132 }
133133 // Hide/Show the SystemBars and Status bar
134134 SetSystemBarsVisibility ( ) ;
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ void OnFullScreenButtonClick(object sender, RoutedEventArgs e)
181181 var parent = mediaPlayerElement . Parent as FrameworkElement ;
182182 mediaPlayerElement . Width = parent ? . Width ?? mediaPlayerElement . Width ;
183183 mediaPlayerElement . Height = parent ? . Height ?? mediaPlayerElement . Height ;
184- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
184+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
185185 }
186186 else
187187 {
@@ -208,7 +208,7 @@ void OnFullScreenButtonClick(object sender, RoutedEventArgs e)
208208 {
209209 popup . IsOpen = true ;
210210 }
211- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
211+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
212212 }
213213 }
214214}
Original file line number Diff line number Diff line change @@ -726,10 +726,10 @@ sealed class MediaManagerDelegate : AVPlayerViewControllerDelegate
726726{
727727 public override void WillBeginFullScreenPresentation ( AVPlayerViewController playerViewController , IUIViewControllerTransitionCoordinator coordinator )
728728 {
729- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
729+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . Default , MediaElementScreenState . FullScreen ) ) ;
730730 }
731731 public override void WillEndFullScreenPresentation ( AVPlayerViewController playerViewController , IUIViewControllerTransitionCoordinator coordinator )
732732 {
733- MediaManager . FullScreenEvents . OnWindowsChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
733+ MediaManager . FullScreenEvents . OnFullScreenStateChanged ( new FullScreenStateChangedEventArgs ( MediaElementScreenState . FullScreen , MediaElementScreenState . Default ) ) ;
734734 }
735735}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ internal readonly record struct FullScreenEvents()
5454 /// An event that is raised when the full screen state of the media element has changed.
5555 /// </summary>
5656 /// <param name="e"></param>
57- public static void OnWindowsChanged ( FullScreenStateChangedEventArgs e ) => WindowsChanged ? . Invoke ( null , e ) ;
57+ public static void OnFullScreenStateChanged ( FullScreenStateChangedEventArgs e ) => WindowsChanged ? . Invoke ( null , e ) ;
5858 }
5959
6060 /// <summary>
You can’t perform that action at this time.
0 commit comments