UNPKG

@snap/camera-kit

Version:
68 lines (39 loc) 1.9 kB
[CameraKit Web SDK - v0.22.0](../README.md) / [Exports](../modules.md) / MediaStreamSourceOptions # Interface: MediaStreamSourceOptions Media stream source options. ## Hierarchy - [`CameraKitDeviceOptions`](CameraKitDeviceOptions.md) ↳ **`MediaStreamSourceOptions`** ## Table of contents ### Properties - [cameraType](MediaStreamSourceOptions.md#cameratype) - [fpsLimit](MediaStreamSourceOptions.md#fpslimit) - [transform](MediaStreamSourceOptions.md#transform) - [disableSourceAudio](MediaStreamSourceOptions.md#disablesourceaudio) ## Properties ### cameraType • **cameraType**: ``"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. #### Inherited from [CameraKitDeviceOptions](CameraKitDeviceOptions.md).[cameraType](CameraKitDeviceOptions.md#cameratype) ___ ### fpsLimit • **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) ___ ### transform • **transform**: [`Transform2D`](../classes/Transform2D.md) Specifies the 2D transformation to apply to the Lens. By default, CameraKit applies no transformation. ___ ### disableSourceAudio • **disableSourceAudio**: `boolean` Indicates whether the audio from the source should be disabled. By default, CameraKit passes audio to the Lens.