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