private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { FFmePlayer.Source = new Uri(AppDomain.CurrentDomain.BaseDirectory + "test.mp4"); // FFmePlayer.Source = new Uri("https://zippy.gfycat.com/HairyIdenticalCougar.webm"); FFmePlayer.Play(); string ffmpegPath = Unosquare.FFmpegMediaElement.MediaElement.FFmpegPaths.FFmpeg; string ffprobePath = Unosquare.FFmpegMediaElement.MediaElement.FFmpegPaths.FFprobe; ResourceManagement.CommandConfiguration = CommandConfiguration.Create(TempPath, ffmpegPath, ffprobePath); if (!Directory.Exists(OutputPath)) { Directory.CreateDirectory(OutputPath); } if (!Directory.Exists(TempPath)) { Directory.CreateDirectory(TempPath); } }
private void MainWindow_OnClosing(object sender, CancelEventArgs e) { FFmePlayer.Close(); }