Interface CameraStreamingDelegate

interface CameraStreamingDelegate {
    handleSnapshotRequest(request: SnapshotRequest, callback: SnapshotRequestCallback): void;
    handleStreamRequest(request: StreamingRequest, callback: StreamRequestCallback): void;
    prepareStream(request: PrepareStreamRequest, callback: PrepareStreamCallback): void;
}

Methods

  • This method is called when a HomeKit controller requests a snapshot image for the given camera. The handler must respect the desired image height and width given in the SnapshotRequest. The returned Buffer (via the callback) must be encoded in jpeg.

    HAP-NodeJS will complain about slow running handlers after 5 seconds and terminate the request after 15 seconds.

    Parameters

    Returns void