Exemplo n.º 1
0
 public void InitializeTests()
 {
     _mockTcpSocket = new Mock <ITcpSocket>();
     _target        = new VideoWorker {
         Socket = _mockTcpSocket.Object
     };
 }
Exemplo n.º 2
0
 private void DisposeVideoWorker()
 {
     if (VideoWorker != null)
     {
         VideoWorker.Dispose();
         VideoWorker = null;
     }
 }
Exemplo n.º 3
0
        public virtual VideoWorker CreateVideoWorker()
        {
            var socket = SocketFactory.GetTcpSocket(ConnectParams.NetworkAddress, ConnectParams.VideoPort);
            var worker = new VideoWorker {
                Socket = socket
            };

            return(worker);
        }
Exemplo n.º 4
0
        public void StartRecording()
        {
            DisposeVideoWorker();

            CommandWorker.SendConfigCommand(VideoOnUsbConfigKey, TrueConfigValue);
            CommandWorker.SendConfigCommand(VideoCodecConfigKey, Mp4_360p_H264_720p_CodecConfigValue);

            VideoWorker = WorkerFactory.CreateVideoWorker();
            VideoWorker.Run();
        }