Example #1
0
        /// <summary>
        /// Switch camera to
        /// </summary>
        /// <param name="vct"></param>
        private void switchCamera(VideoChannelType vct)
        {
            var configuration = new Settings();

            configuration.Video.Channel = vct;
            _droneClient.Send(configuration);
            System.Threading.Thread.Sleep(100);
        }
Example #2
0
        public void SwitchVideoChannel()
        {
            //SetConfiguration(_configuration.Video.Channel.Set(VideoChannelType.Next).ToCommand());
            //vc = VideoChannelType.Next;
            vc = vc == VideoChannelType.Horizontal ? VideoChannelType.Vertical : VideoChannelType.Horizontal;

            lock (_SyncRoot)
            {
                //_CommandWorker.EnqueueConfigCommand(Command.ConfigIds(ApplicationId, UserId, SessionId));
                var switchVideo = _configuration.Video.Channel.Set(vc).ToCommand();
                _CommandWorker.EnqueueConfigCommand(switchVideo);
            }
        }