Skip to content

@camera.ui/sdk / plugin / PluginRole

Enumeration: PluginRole ​

Defined in: plugin/contract.ts:24

Role a plugin plays in the system. The role decides which lifecycle hooks the host invokes and which contract validations apply.

Enumeration Members ​

CameraAndSensorProvider ​

CameraAndSensorProvider: "cameraAndSensorProvider"

Defined in: plugin/contract.ts:32

Manages cameras and exposes sensors, on its own cameras and, with consumes set, on foreign ones.


CameraController ​

CameraController: "cameraController"

Defined in: plugin/contract.ts:30

Manages cameras and their media streams: stream URLs, PTZ, snapshots. Provides no sensors for foreign cameras.


Hub ​

Hub: "hub"

Defined in: plugin/contract.ts:26

Cross-camera aggregator (smart-home bridge, recorder). Owns no cameras and provides no sensors.


SensorProvider ​

SensorProvider: "sensorProvider"

Defined in: plugin/contract.ts:28

Adds sensors to cameras owned by other plugins, for example a detector running on foreign video frames.


Service ​

Service: "service"

Defined in: plugin/contract.ts:34

Serves camera.ui itself, for example with a language model. Touches no cameras and no sensors, and is never assigned to one.