variable ptzControl

Codec for <PtzControl>.

Examples

Build a zoom request

import { assertStringIncludes } from "@std/assert";
import { ptzControl } from "@hertzg/reolink-api/protocol/params";

const xml = ptzControl.encode({ channelId: 0, command: "zoomInc", speed: 10 });

assertStringIncludes(xml, "<command>zoomInc</command>");

Type

XmlParam<"PtzControl", PtzControl>

Usage

import { ptzControl } from "protocol/params/mod.ts";