Ejemplo n.º 1
0
        public ActionResult <string> SetVideoStream(int state)
        {
            var cmd = new SetVideoStream();

            cmd.VideoStreamState = state == 1 ? TelloSdk.Commands.Control.SetVideoStream.States.On
                : TelloSdk.Commands.Control.SetVideoStream.States.Off;

            return(_manager.SendCommand(cmd));
        }
Ejemplo n.º 2
0
        public void StopVideoStream()
        {
            var cmd = new SetVideoStream();

            cmd.VideoStreamState = SetVideoStream.States.Off;
            var resp = SendCommand(cmd);

            if (resp != "ok")
            {
                throw new Exception("Unable to stop video stream");
            }
        }