@snap/camera-kit
Version:
Camera Kit Web
38 lines (20 loc) • 797 B
Markdown
[**CameraKit Web SDK v1.4.0**](../README.md)
***
[CameraKit Web SDK](../globals.md) / CameraKitSourceInfo
# Interface: CameraKitSourceInfo
## Properties
### media?
> `optional` **media**: `HTMLImageElement` \| `HTMLCanvasElement` \| `HTMLVideoElement` \| `MediaStream`
HTML element or MediaStream as an input source.
If useManualFrameProcessing is true, then this parameter is optional.
***
### useManualFrameProcessing?
> `optional` **useManualFrameProcessing**: `boolean`
Whether to provide frames manually.
***
### replayTrackingData?
> `optional` **replayTrackingData**: `object`
If specified, the passed-in tracking data buffer will be used as tracking data for the current
media element instead of live tracking data.
#### buffer
> **buffer**: `ArrayBuffer` \| `Uint8Array`