/// <summary> /// Load audio file /// </summary> /// <param name="path">Path to audio file</param> private void LoadAudio(string path) { var vidPreview = new AudioVideoPreview(); vidPreview.LoadAudio(path); gContent.Children.Add(vidPreview); }
/// <summary> /// Load video file /// </summary> /// <param name="path">Path to video file</param> private void LoadVideo(string path) { var vidPreview = new AudioVideoPreview(); vidPreview.LoadVideo(path); gContent.Children.Add(vidPreview); gContent.Background = Brushes.Black; }