This commit is contained in:
Frank Skare
2019-06-14 01:03:18 +02:00
parent f8f58dba5e
commit 1bf8e568c5
2 changed files with 11 additions and 0 deletions

View File

@@ -226,6 +226,16 @@ namespace mpvnet
}));
}
public static void add_files_to_playlist(string[] args)
{
MainForm.Instance.Invoke(new Action(() => {
using (var d = new OpenFileDialog() { Multiselect = true })
if (d.ShowDialog() == DialogResult.OK)
foreach(string file in d.FileNames)
mp.commandv("loadfile", file, "append");
}));
}
public static void cycle_audio(string[] args)
{
string filePath = mp.get_property_string("path", false);