screengen: (
file: string,
ts: number,
width?: null | number,
height?: null | number,
signal?: null | AbortSignal,
) => Promise<Buffer<ArrayBufferLike>> = addon.getScreenshot
Type Declaration
- (
file: string,
ts: number,
width?: null | number,
height?: null | number,
signal?: null | AbortSignal,
): Promise<Buffer<ArrayBufferLike>> Parameters
- file: string
- ts: number
Optionalwidth: null | numberOptionalheight: null | numberOptionalsignal: null | AbortSignal
Returns Promise<Buffer<ArrayBufferLike>>
get screenshot jpeg buffer at [ts] for [file], optional [width] & [height] fallback to video width & height