/// <summary> /// Opens a save file dialog to find wherre to save the video pefore loading FFmpeg /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Download_Click(object sender, EventArgs e) { Microsoft.Win32.SaveFileDialog findpage = new Microsoft.Win32.SaveFileDialog(); findpage.Filter = "Video file | *.mp4"; findpage.FilterIndex = 1; if (findpage.ShowDialog() == true) { if (!string.IsNullOrEmpty(findpage.FileName)) { StreamExtract.LoadFromBrowser((WFH.Child as WebBrowser).DocumentText, comboBox.Text, true, findpage.FileName); } } }
/// <summary> /// Loads VLC /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Stream_Click(object sender, EventArgs e) { StreamExtract.LoadFromBrowser((WFH.Child as WebBrowser).DocumentText, comboBox.Text, false, null); }
private void DownloadButton_Click(object sender, EventArgs e) { StreamExtract.LoadProgram(QualityComboBox.Text, VideoIDTextBox.Text, HTMLTextBox.Text, URLTextBox.Text, true, DownloadToTextBox.Text); }