Class: CamFeed
Defined in: drivers/CamFeed.ts:54
The generic driver for a camera tool
Extended by
Constructors
Constructor
new CamFeed(log, options): CamFeed;
Defined in: drivers/CamFeed.ts:88
Parameters
| Parameter | Type |
|---|---|
log | any |
options | IKeyValue |
Returns
CamFeed
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
mediaStream | MediaStream | Media stream with track from videoSource | drivers/CamFeed.ts:65 |
Methods
blocking()
blocking(): Promise<unknown>;
Defined in: drivers/CamFeed.ts:389
Checks if camera feed is running, if so it will set up an
event emitter for stage_terminating
Returns
Promise<unknown>
A promise (either rejecting or explaining reason for the termination of the camera driver)
start()
start(): Promise<null>;
Defined in: drivers/CamFeed.ts:343
Starts the camera feed process by determining if multiple cameras are plugged in and adjusting the camera settings/configurations.
Returns
Promise<null>
stop()
stop(reason): void;
Defined in: drivers/CamFeed.ts:367
Stops the camera stream and terminates connections
Parameters
| Parameter | Type | Description |
|---|---|---|
reason | string | Reason for stopping the camera feed |
Returns
void
Nothing