Webcam
Properties
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.
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
istrue
if the Webcam is being used.
*IsAvailable
istrue
if the Webcam is available for use.
*AccessDenied
istrue
if permissions are disabled for Webcams.
*Type
is"WebcamIsActiveEvent"
.
Examples
See the Camera Component Tutorial video in the official Retro Gadgets YouTube channel.