UNPKG

@snap/camera-kit

Version:
44 lines (25 loc) 1.06 kB
[CameraKit Web SDK - v0.22.0](../README.md) / [Exports](../modules.md) / CameraKitSourceInfo # Interface: CameraKitSourceInfo ## Table of contents ### Properties - [media](CameraKitSourceInfo.md#media) - [useManualFrameProcessing](CameraKitSourceInfo.md#usemanualframeprocessing) - [replayTrackingData](CameraKitSourceInfo.md#replaytrackingdata) ## 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. #### Type declaration | Name | Type | | :------ | :------ | | `buffer` | `ArrayBuffer` \| `Uint8Array` |