Class CameraController

Everything needed to expose a HomeKit Camera.

Hierarchy (view full)

Implements

Constructors

Properties

motionService?: MotionSensor
occupancyService?: OccupancySensor
recordingManagement?: RecordingManagement

The RecordingManagement which is responsible for handling HomeKit Secure Video. This property is only present if recording was configured.

Methods

  • Call this method if you want to forcefully suspend an ongoing streaming session. This would be adequate if the rtp server or media encoding encountered an unexpected error.

    Parameters

    • sessionId: string

      id of the current ongoing streaming session

    Returns void

  • Parameters

    • event: "microphone-change"
    • listener: ((muted: boolean, volume: number) => void)
        • (muted, volume): void
        • Parameters

          • muted: boolean
          • volume: number

          Returns void

    Returns this

  • Parameters

    • event: "speaker-change"
    • listener: ((muted: boolean, volume: number) => void)
        • (muted, volume): void
        • Parameters

          • muted: boolean
          • volume: number

          Returns void

    Returns this