Webcam

Webcam

Properties

RenderTarget VideoChip

The VideoChip this camera is streaming contents to.

AccessDenied boolean read only

Will return true if Camera access is denied. See Permissions for more information.

IsActive boolean read only

Returns true if the Webcam is currently being used.

IsAvailable boolean read only

Returns true if the Webcam is available for being used.

Methods

GetRenderBuffer( ) RenderBuffer

Gets the camera RenderBuffer. The render buffer obtained can then be fed to the DrawRenderBuffer method of the VideoChip module.

Events

WebcamIsActiveEvent : { IsActive boolean, IsAvailable boolean, AccessDenied boolean, Type string }

Triggered when the Webcam's active state changes.
* IsActive is true if the Webcam is being used.
* IsAvailable is true if the Webcam is available for use.
* AccessDenied is true if permissions are disabled for Webcams.
* Type is "WebcamIsActiveEvent".

Examples

See the Camera Component Tutorial video in the official Retro Gadgets YouTube channel.