SelectedPathPopup |
Show how to get video properties from a selection and how to display that in a popup window
Show the video file path of the selected video in a popup window
With the path to the selected video you can for example hook up the program to other software or run extranl programs on the video file.
using System.Runtime; using System.Collections.Generic; using VideoCataloger; /// <summary> /// This sample prints the ID of the currently selected videos. /// </summary> public class Script { /// <summary> /// Run sample. This is the entry function called by fvc. /// </summary> static public async System.Threading.Tasks.Task Run(IScripting scripting, string argument) { ISelection selection = scripting.GetSelection(); var catalog = scripting.GetVideoCatalogService(); List<long> selected = selection.GetSelectedVideos(); foreach (long video in selected) { var entry = catalog.GetVideoFileEntry(selected[0]); System.Windows.MessageBox.Show(entry.FilePath, "Selected Video"); } } }