예제 #1
0
        public void SetProfile()
        {
            m_profileCollection = m_encoder.ProfileCollection;
            for(int i = 0; i < m_profileCollection.Count; i++)
            {
                m_profile = m_profileCollection.Item(i);

                if( m_profile.Name == Flag_configpro)
                {
                    m_srcGrp.set_Profile(m_profile);
                    break;
                }

            }
        }
예제 #2
0
파일: Stream.cs 프로젝트: usmanghani/VTC
        private void InitializeEncoder()
        {
            SrcGrpColl = Encoder.SourceGroupCollection;
            SrcGrp = SrcGrpColl.Add("SG_1");
            SrcAud = SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);
            SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
            SrcAud.SetInput("Default_Audio_Device", "Device", "");
            SrcVid.SetInput("Default_Video_Device", "Device", "");

            ProColl = Encoder.ProfileCollection;

            for (int i = 0; i < ProColl.Count; i++)
            {
                Pro = ProColl.Item(i);
                data.Add(Pro.Name);

                if (Pro.Name == Codec)
                {
                    SrcGrp.set_Profile(Pro);
                    break;
                }
            }
            BrdCst = Encoder.Broadcast;
            BrdCst.set_PortNumber(WMENC_BROADCAST_PROTOCOL.WMENC_PROTOCOL_HTTP, Port);
        }