Пример #1
0
 public static Task PlayPreviousOrSeekToStart(this IMediaManager mediaManager)
 {
     if (mediaManager.Position < TimeSpan.FromSeconds(3))
     {
         return(mediaManager.PlayPrevious());
     }
     else
     {
         return(SeekToStart(mediaManager));
     }
 }
Пример #2
0
 public virtual async Task PlayPrevious()
 {
     if (Queue.HasPrevious())
     {
         await _mediaManager.PlayPrevious();
     }
     else
     {
         await SeekToStart();
     }
 }