public EmulatorEngine(string streamName, string mediaPath, int rtpsPort) { try { StreamName = streamName; MediaPath = mediaPath; RtspPort = rtpsPort; _rstpStreamLibPointer = RtspStreamerLib.CreateRtspStreamerLib(); } catch { throw; } }
// --------------------------------------------------------------------------- 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; } }