Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 void Player_Error(object sender, MediaPlayer.ErrorEventArgs e)
 {
     Thread.Pool.RunAction(() => Ended.TrySetException(new Exception("Failed to play audio > " + e.What)));
 }
Ejemplo n.º 3
0
 void Player_DecoderError(object sender, AVErrorEventArgs e)
 {
     Ended.TrySetException(new Exception("Failed to play audio > " + e.Error.Description));
 }