private void Previous_Click(object sender, RoutedEventArgs e) { if (_playbackService.Position.TotalSeconds > 5) { _playbackService.Seek(TimeSpan.Zero); } else { _playbackService.MovePrevious(); } }
private void Slider_PointerReleased(object sender, PointerRoutedEventArgs e) { _playbackService?.Seek(TimeSpan.FromSeconds(Slider.Value)); _scrubbing = false; }