Exemplo n.º 1
0
        public SysDvrRTSPServer(bool videoSupport, bool audioSupport, bool localOnly, int port)
        {
            SysDVRVideoRTSPTarget v = null;
            SysDVRAudioRTSPTarget a = null;

            if (videoSupport)
            {
                v = new SysDVRVideoRTSPTarget();
            }
            if (audioSupport)
            {
                a = new SysDVRAudioRTSPTarget();
            }

            Video  = v;
            Audio  = a;
            server = new RtspServer(port, v, a, localOnly);
        }
Exemplo n.º 2
0
 public SysDvrRTSPManager(bool video, bool audio, bool localOnly, int port) :
     base(video ? new SysDVRVideoRTSPTarget() : null, audio ? new SysDVRAudioRTSPTarget() : null)
 {
     server = new RtspServer(port, VideoTarget as SysDVRVideoRTSPTarget, AudioTarget as SysDVRAudioRTSPTarget, localOnly);
 }