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

            return(worker);
        }
        public void StartRecording()
        {
            DisposeVideoWorker();

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

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