UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

28 lines (27 loc) 1.1 kB
export declare class Camera { static mediaDevicesCallback: ((callback: (devices: Array<MediaDeviceInfo>) => void) => void) | undefined; static clear(): void; static setCameraList(list: Array<MediaDeviceInfo>): void; private static cameraList; private static cameraIndex; private static cameraFacingMode; private static canSwitchFacingMode; hasCamera(callback: (res: boolean) => void): void; getMediaConstraints(videoSize?: { width?: number; height?: number; }): MediaStreamConstraints; startVideo(videoElement: HTMLVideoElement, callback: (stream: MediaStream) => void, imageWidth?: number, imageHeight?: number): void; getImageSize(videoEl: HTMLVideoElement): { width: number; height: number; }; snap(videoElement: HTMLVideoElement, callback: BlobCallback): boolean; private canFlipValue; private updateCanFlipValue; private onCanFlipChangedCallback?; canFlip(onCanFlipChangedCallback?: (res: boolean) => void): boolean; flip(): void; private hasCameraCallback; private setVideoInputs; }