UNPKG

homebridge-unifi-protect

Version:

Homebridge UniFi Protect plugin providing complete HomeKit integration for the entire UniFi Protect ecosystem with full support for most features including HomeKit Secure Video, multiple controllers, blazing fast performance, and much more.

22 lines (21 loc) 825 B
import { FfmpegLivestreamProcess } from "homebridge-plugin-utils"; import type { ProtectCamera } from "./devices/index.js"; import type { ProtectLivestream } from "unifi-protect"; import type { RtspEntry } from "./devices/protect-camera.js"; export declare class LivestreamManager { private eventHandlers; private livestreams; private protectCamera; private restartDelay; private restarting; private subscriberCount; private segmentTimer; private startTime; constructor(protectCamera: ProtectCamera); private getIndex; acquire(rtspEntry: RtspEntry): FfmpegLivestreamProcess | ProtectLivestream; isRestarting(rtspEntry: RtspEntry): boolean; shutdown(): void; start(rtspEntry: RtspEntry, segmentLength?: number): Promise<boolean>; stop(rtspEntry: RtspEntry): void; }