TTMSFNCWXCustomCamera Class
Implements the base camera control that streams live video from a system camera into an embedded web control and captures snapshots.
API unit family: TMSFNCWXCamera
Inherits from: TTMSFNCCustomWEBControl
Syntax
TTMSFNCWXCustomCamera = class(TTMSFNCCustomWEBControl)
Remarks
This is the customizable base class; published design-time surface is exposed by the TTMSFNCWXCamera descendant. Call Start to begin streaming and TakeSnapshot to capture a frame.
Properties
| Name | Description |
|---|---|
| SupportedConstraints | Lists the media capture constraints reported as supported by the current device. |
Methods
| Name | Description |
|---|---|
| ApplyConstraints | Applies a set of media capture constraints to the active stream. |
| ChangeCameraResolution | Requests a new capture resolution for the active stream. |
| Pause | Pauses the live camera stream while keeping it ready to resume. |
| RequestDevices | Requests the available camera devices from the system and populates the Devices collection. |
| Resume | Resumes a previously paused camera stream. |
| SelectDevice | Selects the camera device to stream from when CameraType is wctSelected. |
| Start | Starts the camera stream using the current camera type and resolution. |
| Stop | Stops the camera stream and releases the active capture. |
| TakeSnapshot | Captures a still image from the current camera stream. |