sendPTZControlCmd method

void sendPTZControlCmd(
  1. int cmd,
  2. bool isStop,
  3. String cameraId
)

Implementation

void sendPTZControlCmd(int cmd, bool isStop, String cameraId) async {
  await methodChannel.invokeMethod("PTZ_CONTROL", {
    "cameraId": cameraId,
    "cmd": cmd,
    "isStop": isStop ? isStop : false,
  });
}