private void SetVideo(string fileName) { try { var source = new Accord.Video.FFMPEG.VideoFileSource(fileName); videoPlayer.VideoSource = source; } catch (Exception) { MessageBox.Show("Error al leer el archivo."); } }
/// <summary> /// Set the video player to read a video file from disk. /// </summary> /// <param name="fileName"></param> private void SetVideo(string fileName) { var source = new Accord.Video.FFMPEG.VideoFileSource(fileName); videoPlayer.VideoSource = source; }