Interface CameraKitSourceInfo

interface CameraKitSourceInfo {
    media?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | MediaStream;
    useManualFrameProcessing?: boolean;
    replayTrackingData?: {
        buffer: ArrayBuffer | Uint8Array;
    };
}

Properties

HTML element or MediaStream as an input source. If useManualFrameProcessing is true, then this parameter is optional.

useManualFrameProcessing?: boolean

Whether to provide frames manually.

replayTrackingData?: {
    buffer: ArrayBuffer | Uint8Array;
}

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

Generated using TypeDoc