void Player_MediaFailed(Windows.Media.Playback.MediaPlayer sender, Windows.Media.Playback.MediaPlayerFailedEventArgs args) { Ended.TrySetException(new Exception("Failed to play audio > " + args.ErrorMessage)); }
void Player_Error(object sender, MediaPlayer.ErrorEventArgs e) { Thread.Pool.RunAction(() => Ended.TrySetException(new Exception("Failed to play audio > " + e.What))); }
void Player_DecoderError(object sender, AVErrorEventArgs e) { Ended.TrySetException(new Exception("Failed to play audio > " + e.Error.Description)); }