UNPKG

survey-core

Version:

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

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; }