From f2fd5d435102e0769c4790fe6edbcdee7f3edb4b Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Wed, 9 Jun 2021 12:15:27 +0200 Subject: [PATCH] Update nuget --- Directory.Build.props | 2 +- MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs | 6 +++++- MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 6f1792b3..c9bd8060 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,7 +18,7 @@ https://github.com/Baseflow/XamarinMediaManager git $(AssemblyName) ($(TargetFramework)) - 1.0.8 + 1.0.9 8.0 diff --git a/MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs b/MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs index 71445d81..e582c636 100644 --- a/MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs +++ b/MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs @@ -141,7 +141,11 @@ public override void UpdateIsFullWindow(bool isFullWindow) if (PlayerView == null) return; - //TODO: Implement isFullWindow + //Player.VideoScalingMode = C.VideoScalingModeScaleToFit; + if(isFullWindow) + PlayerView.ResizeMode = AspectRatioFrameLayout.ResizeModeFill; + else + PlayerView.ResizeMode = AspectRatioFrameLayout.ResizeModeFit; } protected int lastWindowIndex = -1; diff --git a/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs b/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs index 2e77158b..af2e555a 100644 --- a/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs +++ b/MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs @@ -91,7 +91,10 @@ public override void UpdateIsFullWindow(bool isFullWindow) if (PlayerView == null) return; - //TODO: Implement isFullWindow + if(isFullWindow) + PlayerView.PlayerViewController.VideoGravity = AVLayerVideoGravity.ResizeAspectFill; + else + PlayerView.PlayerViewController.VideoGravity = AVLayerVideoGravity.ResizeAspect; } protected override void Initialize()