import { WebCameraCore } from "./webcam-core"; /** * This will open default user facing camera * Feature * - flip left/right as an option in flipImage */ export default class UserWebCamera extends WebCameraCore { protected _flipImage: boolean; /** * Opend default user facing camera * @param webcamElement * @param flipImage Flip left-right * @param canvasElement * @param snapSoundElement */ constructor(webcamElement: HTMLVideoElement, flipImage?: boolean, canvasElement?: HTMLCanvasElement | null, snapSoundElement?: HTMLAudioElement | null); /** * Start Web Camera * @returns */ start(): Promise; /** * This will try to mount media to webcamElement and will automatically * change index number to find the next working media, if it cannot open specific media at provided index. * It will stop finding next media then throw error if no media can be mount. * * @param index Index of media to run in webcamList array * @param remountIndex internal use only */ protected mountWebCam(): Promise; protected getUserFacingMediaConstraints(): MediaStreamConstraints; /** * Flip context left to right before drawing to canvas * @param context */ protected beforeSnapContext(context: CanvasRenderingContext2D): void; }