Codec for <timelapseDownload>.
Ask for a JPEG timelapse from the start
Ask for a JPEG timelapse from the start
import { assertStringIncludes } from "@std/assert"; import { timelapseDownload } from "@hertzg/reolink-api/protocol/params"; const xml = timelapseDownload.encode({ position: 0n, id: "20240501_1200", taskType: "jpeg", }); assertStringIncludes(xml, "<taskType>jpeg</taskType>");
XmlParam<"timelapseDownload", TimelapseDownload>