private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objPlaylist.PreviewWindowSet("", panel1.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); int index = -1; MItem item; m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\!LG Jazz 1080-30p.mp4", "", ref index, out item); m_objPlaylist.FilePlayStart(); }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objMixer = new MMixerClass(); m_objPlaylist.PreviewWindowSet("", panelPr.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); int nIndex = -1; MItem pFile; m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\!PATAGONIA 1080p.mp4", "", ref nIndex, out pFile); m_objPlaylist.FilePlayStart(); }
private void Form1_Load(object sender, EventArgs e) { m_objFile1 = new MFileClass(); m_objFile2 = new MFileClass(); HTML5Plugin1 = new MFOverlayHTMLClass(); HTML5Plugin2 = new MFOverlayHTMLClass(); m_objPlaylist = new MPlaylistClass(); m_objPlaylist.PreviewWindowSet("", panelPr.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); SetMFile(); }
private void Form1_Load(object sender, EventArgs e) { mcc = new MCCDisplay(); m_objPlaylist = new MPlaylistClass(); m_objPlaylist.PreviewWindowSet("", panelPrev.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); m_objPlaylist.PropsSet("object::on_frame.sync", "true"); m_objPlaylist.PropsSet("object::on_frame.data", "true"); m_objPlaylist.OnEventSafe += M_objPlaylist_OnEventSafe; m_objPlaylist.OnFrameSafe += M_objPlaylist_OnFrameSafe; m_objPlaylist.PluginsAdd(mcc, 0); }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objLive = new MLiveClass(); m_objRenderer = new MRendererClass(); m_objPlaylist.PreviewWindowSet("", panelPlaylist.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); m_objLive.PreviewWindowSet("", panelLive.Handle.ToInt32()); m_objLive.PreviewEnable("", 0, 1); m_objLive.PropsSet("object::timecode.time_sync", "1"); m_objLive.PropsSet("object::on_frame.sync", "false"); m_objLive.OnFrameSafe += M_objLive_OnFrameSafe; }
private void ReInitPr(string objectName) { if (objectName == "MFile") { m_objMFile.PreviewWindowSet("", panelpr.Handle.ToInt32()); m_objMFile.PreviewEnable("", 0, 1); } else if (objectName == "MPlaylist") { m_objMPlaylist.PreviewWindowSet("", panelpr.Handle.ToInt32()); m_objMPlaylist.PreviewEnable("", 0, 1); } else if (objectName == "MMixer") { m_objMixer.PreviewWindowSet("", panelpr.Handle.ToInt32()); m_objMixer.PreviewEnable("", 0, 1); } }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objWriter = new MWriterClass(); m_objPlaylist.PreviewWindowSet("", panel1.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); //m_objPlaylist.PropsSet("loop", "false"); //m_objPlaylist.PropsSet("active_frc", "false"); //m_objPlaylist.PropsSet("preview.drop_frames", "true"); int index = -1; MItem item; //m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\A QUALCUNO PIACE CALDO.mkv", "external_process=false", ref index, out item); m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\A QUALCUNO PIACE CALDO.mkv", "", ref index, out item); }
private void Form1_Load(object sender, EventArgs e) { m_objMFile = new MFileClass(); m_objPlaylist = new MPlaylistClass(); m_objMFile.PreviewWindowSet("", panelPr.Handle.ToInt32()); m_objMFile.PreviewEnable("", 0, 1); m_objMFile.FileNameSet(@"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.03.06Etere31735\MEM001M-20190306Z143546.mp4", "loop=true"); m_objMFile.FilePlayStart(); m_objPlaylist.PreviewWindowSet("", panelPrPl.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); int index = -1; m_objPlaylist.PlaylistAdd(null, @"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.03.06Etere31735\MEM001M-20190306Z143546.mp4", "loop=true", index, out item); m_objPlaylist.FilePlayStart(); }
private void OpenFile_btn_Click(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objPlaylist.OnFrameSafe += M_objPlaylist_OnFrameSafe; m_objPlaylist.PreviewWindowSet("", panelPrev.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.FileNames.Length != 0) { int index = -1; MItem item; string name = openFileDialog1.FileNames[0].ToString(); m_objPlaylist.PlaylistAdd(null, name, "", ref index, out item); } m_objPlaylist.FilePlayStart(); }
private void Form1_Load(object sender, EventArgs e) { m_objFile = new MFileClass(); m_objPlaylist = new MPlaylistClass(); m_objFile.PreviewWindowSet("", panelPrFile.Handle.ToInt32()); m_objFile.PreviewEnable("", 1, 1); m_objPlaylist.PreviewWindowSet("", panelPrPlaylist.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); int index = -1; m_objPlaylist.PlaylistAdd(null, path, "", ref index, out item); m_objPlaylist.FilePlayStart(); m_objFile.FileNameSet(path, ""); m_objFile.FilePlayStart(); }
private void Form1_Load(object sender, EventArgs e) { m_objMPlaylist = new MPlaylistClass(); m_objMPlaylist.PreviewWindowSet("", panel1.Handle.ToInt32()); m_objMPlaylist.PreviewEnable("", 1, 1); }
/// <summary> /// Initialization of Medialooks objects and form controls /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { try { this.Text += " - MPlatform SDK " + CheckVersionClass.GetVersion(); } catch { } try { //Initialize objects m_objPlaylist = new MPlaylistClass(); //m_objFile = new MFileClass(); m_objRenderer = new MRendererClass(); } catch (Exception ex) { MessageBox.Show("Can't create MPlatform objects: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); return; } //Loop playlist m_objPlaylist.PropsSet("loop", "true"); m_objPlaylist.PropsSet("object::on_frame.sync", "true"); m_objPlaylist.OnEvent += new IMEvents_OnEventEventHandler(m_objFile_OnEvent); m_objPlaylist.OnFrameSafe += M_objPlaylist_OnFrameSafe; //Initialize preview m_objPlaylist.PreviewWindowSet("", panelPreview.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", checkBoxAudio.Checked ? 1 : 0, checkBoxVideo.Checked ? 1 : 0); //Start mFile object m_objPlaylist.ObjectStart(new object()); //Look for renderers int nDevices = 0; m_objRenderer.DeviceGetCount(0, "renderer", out nDevices); if (nDevices > 0) { checkBoxOutput.Enabled = true; comboBoxRenderer.Enabled = true; for (int i = 0; i < nDevices; i++) { string strName; string strXML; m_objRenderer.DeviceGetByIndex(0, "renderer", i, out strName, out strXML); comboBoxRenderer.Items.Add(strName); } comboBoxRenderer.SelectedIndex = 0; } else { checkBoxOutput.Enabled = false; comboBoxRenderer.Enabled = false; } //Fill audio and video formats FillVideoFormats(); FillAudioFormats(); comboBoxVF.SelectedIndex = startVideoFormat; comboBoxAF.SelectedIndex = startAudioFormat; //Start playlist m_objPlaylist.FilePlayStart(); }