Skip to content

Commit 816e8a7

Browse files
[housekeeping] Automated PR to fix formatting errors (#2110)
1 parent 7097cd8 commit 816e8a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.macios.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,22 +313,22 @@ protected virtual partial void PlatformUpdateSource()
313313
}
314314
void SetPoster()
315315
{
316-
316+
317317
if (PlayerItem is null || metaData is null)
318318
{
319319
return;
320320
}
321321
var videoTrack = PlayerItem.Asset.TracksWithMediaType(AVMediaTypes.Video.GetConstant()).FirstOrDefault();
322-
if(videoTrack is not null)
322+
if (videoTrack is not null)
323323
{
324324
return;
325325
}
326-
if(PlayerItem.Asset.Tracks.Length == 0)
326+
if (PlayerItem.Asset.Tracks.Length == 0)
327327
{
328328
// No video track found and no tracks found. This is likely an audio file. So we can't set a poster.
329329
return;
330330
}
331-
331+
332332
if (PlayerViewController?.View is not null && PlayerViewController.ContentOverlayView is not null && !string.IsNullOrEmpty(MediaElement.MetadataArtworkUrl))
333333
{
334334
var image = UIImage.LoadFromData(NSData.FromUrl(new NSUrl(MediaElement.MetadataArtworkUrl))) ?? new UIImage();

0 commit comments

Comments
 (0)