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)); }
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"); } }