UNPKG

@e-group/material-lab

Version:

EGroup Team Lab - Incubator for EGroup Team experimental React components.

14 lines (13 loc) 523 B
import { RefObject } from 'react'; export declare type Options = { /** * Set `true` to get a mirrored version of the video stream. */ mirrored?: boolean; }; export declare type VideoSnapshotResult = { canvas: HTMLCanvasElement; ctx: CanvasRenderingContext2D | null; blob: Blob | null; }; export default function useGetVideoSnapshot(ref: RefObject<HTMLVideoElement>, options?: Options): ((type?: string | undefined, quality?: number | undefined) => Promise<VideoSnapshotResult | undefined>)[];