UNPKG

video-thumbnails

Version:

Get thumbnail images from any public video URL.

14 lines (13 loc) 413 B
/// <reference types="node" /> export interface ThumbnailResponse { ok: boolean; error?: string; buffer?: Buffer; } /** * Get a video thumbnail image via a public video URL. * * @param url - a public video URL * @param coverTime - the seconds mark to take the screenshot (higher = slower) */ export declare function getVideoThumbnail(url: string, coverTime?: number): Promise<ThumbnailResponse>;