コード例 #1
0
        public EmulatorEngine(string streamName, string mediaPath, int rtpsPort)
        {
            try
            {
                StreamName = streamName;
                MediaPath  = mediaPath;
                RtspPort   = rtpsPort;

                _rstpStreamLibPointer = RtspStreamerLib.CreateRtspStreamerLib();
            }
            catch
            {
                throw;
            }
        }
コード例 #2
0
        // ---------------------------------------------------------------------------

        public EmulatorEngine(string channelName, string mediaPath, int rtspPort, bool enabled)
        {
            _ChannelInfo           = new EmulatorChannel();
            _ChannelInfo.Name      = channelName;
            _ChannelInfo.MediaPath = mediaPath;
            _ChannelInfo.RtspPort  = rtspPort;
            _ChannelInfo.Enabled   = enabled;

            try
            {
                _RstpStreamLibPointer = RtspStreamerLib.CreateRtspStreamerLib();
            }
            catch
            {
                throw;
            }
        }