Skip to content

Commit

Permalink
Minor tidy up. (dotnet#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch authored Aug 15, 2022
1 parent 74908e8 commit 3d09907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if __IOS__ || MACCATALYST
#if IOS || MACCATALYST
using PlatformView = VideoDemos.Platforms.MaciOS.MauiVideoPlayer;
#elif ANDROID
using PlatformView = VideoDemos.Platforms.Android.MauiVideoPlayer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace VideoDemos.Platforms.Android
public class MauiVideoPlayer : CoordinatorLayout
{
VideoView _videoView;
MediaController _mediaController; // Used to display transport controls
MediaController _mediaController;
bool _isPrepared;
Context _context;
IVideo _video;
Expand All @@ -32,13 +32,13 @@ public MauiVideoPlayer(Context context, IVideo video) : base(context)
}
};

// Create a ViedoView and position it in the RelativeLayout
// Create a VideoView and position it in the RelativeLayout
_videoView = new VideoView(context)
{
LayoutParameters = new RelativeLayout.LayoutParams(LayoutParams.MatchParent, LayoutParams.MatchParent)
};

// Add the views to the layouts
// Add to the layouts
relativeLayout.AddView(_videoView);
AddView(relativeLayout);

Expand Down

0 comments on commit 3d09907

Please sign in to comment.