Codec for <findAlarmVideo>.
Start a search for visitor recordings
Start a search for visitor recordings
import { assertStringIncludes } from "@std/assert"; import { findAlarmVideo } from "@hertzg/reolink-api/protocol/params"; const xml = findAlarmVideo.encode({ channelId: 0, streamType: 0, startTime: { year: 2026, month: 10, day: 9, hour: 0, minute: 0, second: 0 }, endTime: { year: 2026, month: 10, day: 9, hour: 23, minute: 59, second: 59 }, alarmType: "visitor", }); assertStringIncludes(xml, "<alarmType>visitor</alarmType>");
XmlParam<"findAlarmVideo", FindAlarmVideo>