Lines Matching refs:video
84 video: HTMLVideoElement | null,
87 if (!video || video.readyState !== video.HAVE_ENOUGH_DATA) {
90 const canvas = captureImageContext(video, pictureOptions);
102 video: HTMLVideoElement,
105 const { videoWidth, videoHeight } = video;
126 context.drawImage(video, 0, 0, width, height);
132 video: HTMLVideoElement,
136 const canvas = captureImageContext(video, config);
155 video: {}, constant
172 (preferredConstraints.video as MediaTrackConstraints).facingMode = {
176 (preferredConstraints.video as MediaTrackConstraints).facingMode = {
182 if (isMediaTrackConstraints(preferredConstraints.video)) {
183 preferredConstraints.video.width = width;
184 preferredConstraints.video.height = height;
191 return input && typeof input.video !== 'boolean';
248 video: HTMLVideoElement,
252 const base64 = captureImage(video, config);
377 video: HTMLVideoElement,
382 if (typeof video.srcObject !== 'undefined') {
383 video.srcObject = stream;
384 } else if (typeof (video as any).mozSrcObject !== 'undefined') {
385 (video as any).mozSrcObject = stream;
387 video.src = createObjectURL(stream as MediaSource | Blob);
392 const source = video.src ?? video.srcObject ?? (video as any).mozSrcObject; constant
399 export function isCapabilityAvailable(video: HTMLVideoElement, keyName: string): boolean {
400 const stream = video.srcObject;