示例#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);
        }
示例#2
0
文件: DroneClient.cs 项目: GroM/SDK
        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);
            }
        }