CaptureOpts: {
maxIntervalMs?: number;
onFrame?: ((pixels: ImageData) => void);
showCanvas?: boolean;
workerScript?: string;
}
Type declaration
Optional
Readonly
maxIntervalMs?: number
Optional
Readonly
onFrame?: ((pixels: ImageData) => void)
- (pixels): void
Returns void
Optional
Readonly
showCanvas?: boolean
Optional
Readonly
workerScript?: string
Delay between reading frames. Default: 0, reading as fast as possible