public override void Activation(MHEngine engine) { if (m_fRunning) { return; } base.Activation(engine); if (m_fStreamPlaying && m_streamContentRef.IsSet()) { string stream = ""; MHOctetString str = m_streamContentRef.ContentRef; if (str.Size != 0) { stream = str.ToString(); } engine.GetContext().BeginVideo(stream, m_nComponentTag); } }
// Activation for Audio is defined in the corrigendum public override void Activation(MHEngine engine) { if (m_fRunning) { return; } base.Activation(engine); // Beginning presentation is started by the Stream object. m_fRunning = true; engine.EventTriggered(this, EventIsRunning); if (m_fStreamPlaying && m_streamContentRef.IsSet()) { string stream = ""; MHOctetString str = m_streamContentRef.ContentRef; if (str.Size != 0) { stream = str.ToString(); } engine.GetContext().BeginAudio(stream, m_nComponentTag); } }