File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments