public static Task PlayPreviousOrSeekToStart(this IMediaManager mediaManager) { if (mediaManager.Position < TimeSpan.FromSeconds(3)) { return(mediaManager.PlayPrevious()); } else { return(SeekToStart(mediaManager)); } }
public virtual async Task PlayPrevious() { if (Queue.HasPrevious()) { await _mediaManager.PlayPrevious(); } else { await SeekToStart(); } }