/// <summary> /// Enable/Disable Decklink output /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void checkBoxOutput_CheckedChanged(object sender, EventArgs e) { if (checkBoxOutput.Checked) { try { m_objRenderer.PropsSet("rate-control", "true"); m_objRenderer.DeviceSet("renderer", comboBoxRenderer.SelectedItem.ToString(), ""); if (textBoxNDIWebRTCName.Enabled && !String.IsNullOrEmpty(textBoxNDIWebRTCName.Text)) { m_objRenderer.DeviceSet("renderer::line-out", textBoxNDIWebRTCName.Text, ""); } m_objRenderer.ObjectStart(m_objMixer); } catch { checkBoxOutput.Checked = false; throw; } } else { try { m_objRenderer.ObjectClose(); } catch { checkBoxOutput.Checked = false; throw; } } }
private void checkBoxOutput_CheckedChanged_1(object sender, EventArgs e) { if (checkBoxOutput.Checked) { try { m_objRenderer.PropsSet("rate-control", "true"); m_objRenderer.DeviceSet("renderer", comboBoxRenderer.SelectedItem.ToString(), ""); m_objRenderer.ObjectStart(m_objFile); } catch (System.Exception ex) { checkBoxOutput.Checked = false; MessageBox.Show(ex.ToString()); } } else { try { m_objRenderer.ObjectClose(); } catch { } } }
public MRendererManager(MRendererSettings info /*, int instance*/) { //_instance = instance; _mrendererInfo = info; _mrenderer = new MRendererClass(); if (!string.IsNullOrEmpty(this.VideoDevice)) { _mrenderer.PropsSet("rate-control", "true"); _mrenderer.DeviceSet("renderer", this.VideoDevice, ""); if (this.ExternalKeyMode) { _mrenderer.DeviceSet("renderer::keying", "external", ""); } } AppDomain.CurrentDomain.ProcessExit += CurrentDomain_ProcessExit; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; AppDomain.CurrentDomain.DomainUnload += CurrentDomain_DomainUnload; }