Skip to content

Commit

Permalink
Update nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Jun 9, 2021
1 parent e886a1b commit f2fd5d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<RepositoryUrl>https://github.com/Baseflow/XamarinMediaManager</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>1.0.8</Version>
<Version>1.0.9</Version>

<!--<Nullable>enable</Nullable>-->
<LangVersion>8.0</LangVersion>
Expand Down
6 changes: 5 additions & 1 deletion MediaManager/Platforms/Android/Player/AndroidMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion MediaManager/Platforms/Ios/Player/IosMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f2fd5d4

Please sign in to comment.