Home > @magiclane/maps-sdk > GemCameraPlayer > (constructor)
GemCameraPlayer.(constructor)
Creates a camera player controller from a data source.
Initializes the controller with loading status and validates that the dataSource supports camera data (sets error status if not). Automatically registers a DataSourceListener to receive camera frames and playback status changes. Updates status to ended if playback is already stopped.
Signature:
constructor(dataSource: DataSource, configurationOverride?: CameraConfiguration | undefined);Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dataSource |
The DataSource providing camera frame data (must support DataType.camera). | |
|
configurationOverride |
CameraConfiguration | undefined |
(Optional) Optional CameraConfiguration to override frame width/height. |