Example #1
0
 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.");
     }
 }
Example #2
0
        /// <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;
        }