예제 #1
0
 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);
     }
 }
예제 #2
0
        // 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);
            }
        }