@snap/camera-kit
Version:
Camera Kit Web
59 lines (34 loc) • 1.68 kB
Markdown
["user"`` \| ``"environment"``
Specifies the camera type for which certain features are enabled or disabled.
For example, surface tracking features are only active when the camera is set to "environment" mode.
The default value is "user", which accommodates the majority of Lenses.
"user" refers to the front-facing camera, while "environment" refers to the rear-facing camera.
[ ](CameraKitDeviceOptions.md).[cameraType](CameraKitDeviceOptions.md
___
• **fpsLimit**: `number`
Limits the frames per second (FPS) to optimize performance by reducing compute resources
when high FPS is not critical. By default, no limit is set, allowing usage of the video's native FPS.
Useful for controlling resource usage on varying device capabilities.
#### Inherited from
[CameraKitDeviceOptions](CameraKitDeviceOptions.md).[fpsLimit](CameraKitDeviceOptions.md#fpslimit)
___
### trackingData
• **trackingData**: `ArrayBuffer`
Optional pre-computed tracking data to enhance rendering performance.
While not commonly provided, this can be used in specific scenarios
where such data is available to optimize video processing.
](../README.md) / [Exports](../modules.md) / VideoSourceOptions
Video source options.
- [`CameraKitDeviceOptions`](CameraKitDeviceOptions.md)
↳ **`VideoSourceOptions`**
- [cameraType](VideoSourceOptions.md
- [fpsLimit](VideoSourceOptions.md
- [trackingData](VideoSourceOptions.md
• **cameraType**: ``