Table of Contents

TTMSFNCWXCamera Class

Provides the design-time camera component that streams live video from a system camera and captures snapshots, publishing the configurable properties and events of TTMSFNCWXCustomCamera.

API unit family: TMSFNCWXCamera Inherits from: TTMSFNCWXCustomCamera

Syntax

TTMSFNCWXCamera = class(TTMSFNCWXCustomCamera)

Properties

Name Description
CameraType Specifies which camera or facing direction is requested when the stream starts. (inherited from TTMSFNCWXCustomCamera)
Devices Lists the camera input devices discovered for the control. (inherited from TTMSFNCWXCustomCamera)
FileLocation Specifies whether the camera page is served from a local offline file or a remote online location. (inherited from TTMSFNCWXCustomCamera)
KeepRatio Controls whether the video preview preserves the camera aspect ratio. (inherited from TTMSFNCWXCustomCamera)
Resolution Provides the preferred capture resolution requested from the camera. (inherited from TTMSFNCWXCustomCamera)
SupportedConstraints Lists the media capture constraints reported as supported by the current device. (inherited from TTMSFNCWXCustomCamera)

Methods

Name Description
ApplyConstraints Applies a set of media capture constraints to the active stream. (inherited from TTMSFNCWXCustomCamera)
ChangeCameraResolution Requests a new capture resolution for the active stream. (inherited from TTMSFNCWXCustomCamera)
Pause Pauses the live camera stream while keeping it ready to resume. (inherited from TTMSFNCWXCustomCamera)
RequestDevices Requests the available camera devices from the system and populates the Devices collection. (inherited from TTMSFNCWXCustomCamera)
Resume Resumes a previously paused camera stream. (inherited from TTMSFNCWXCustomCamera)
SelectDevice Selects the camera device to stream from when CameraType is wctSelected. (inherited from TTMSFNCWXCustomCamera)
Start Starts the camera stream using the current camera type and resolution. (inherited from TTMSFNCWXCustomCamera)
Stop Stops the camera stream and releases the active capture. (inherited from TTMSFNCWXCustomCamera)
TakeSnapshot Captures a still image from the current camera stream. (inherited from TTMSFNCWXCustomCamera)

Events

Name Description
OnCameraDevicesInitialized Occurs after the available camera devices have been discovered and the Devices collection has been populated. (inherited from TTMSFNCWXCustomCamera)
OnGetSupportedConstraints Occurs after the set of capture constraints supported by the device has been retrieved into SupportedConstraints. (inherited from TTMSFNCWXCustomCamera)
OnPause Occurs when the camera stream is paused. (inherited from TTMSFNCWXCustomCamera)
OnSnapshot Occurs when a snapshot has been captured, delivering the image as a bitmap. (inherited from TTMSFNCWXCustomCamera)
OnSnapshotBase64 Occurs when a snapshot has been captured, delivering the image as a Base64-encoded data string. (inherited from TTMSFNCWXCustomCamera)
OnStart Occurs when the camera stream starts playing. (inherited from TTMSFNCWXCustomCamera)
OnStop Occurs when the camera stream is stopped. (inherited from TTMSFNCWXCustomCamera)
OnSwitchCamera Occurs when the active camera device is switched through SelectDevice. (inherited from TTMSFNCWXCustomCamera)