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