variable findAlarmVideo

Codec for <findAlarmVideo>.

Examples

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

Type

XmlParam<"findAlarmVideo", FindAlarmVideo>

Usage

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