Fooxboy / MusicX-WPF

Music X - музыкальный плеер ВКонтакте для Windows 11, Windows 10 в стиле Windows 11
25 stars 3 forks source link

Не показывать ошибку отмены таска юзеру #385

Closed Fooxboy closed 3 months ago

Fooxboy commented 5 months ago

Не показывать пользователю уведомляшку с экзепшеном, когда таска воспроизведения отменяется

Image

вот эту:

2024-05-14 00:12:54.3377||ERROR|Failed to use winrt decoder for vk media source System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at MusicX.Services.Player.Sources.VkMediaSource.OpenWithMediaPlayerAsync(MediaPlayer player, PlaylistTrack track, CancellationToken cancellationToken) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\Sources\VkMediaSource.cs:line 50    at MusicX.Services.Player.Sources.VkMediaSource.OpenWithMediaPlayerAsync(MediaPlayer player, PlaylistTrack track, CancellationToken cancellationToken) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\Sources\VkMediaSource.cs:line 50
2024-05-14 00:12:54.3377||ERROR|System.Threading.Tasks.TaskCanceledException: A task was canceled. System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at MusicX.Services.Player.Sources.VkMediaSource.OpenWithMediaPlayerAsync(MediaPlayer player, PlaylistTrack track, CancellationToken cancellationToken) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\Sources\VkMediaSource.cs:line 50
   at MusicX.Services.Player.PlayerService.PlayTrackAsync(PlaylistTrack track, Nullable`1 position) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\PlayerService.cs:line 200    at MusicX.Services.Player.Sources.VkMediaSource.OpenWithMediaPlayerAsync(MediaPlayer player, PlaylistTrack track, CancellationToken cancellationToken) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\Sources\VkMediaSource.cs:line 50
   at MusicX.Services.Player.PlayerService.PlayTrackAsync(PlaylistTrack track, Nullable`1 position) in D:\a\MusicX-WPF\MusicX-WPF\MusicX\Services\Player\PlayerService.cs:line 200