UNPKG

@aituber-onair/core

Version:

Core library for AITuber OnAir providing voice synthesis and chat processing

20 lines (19 loc) 556 B
/** * Screenshot related utilities */ /** * Capture screenshot from video element * @param videoElement Video element to capture * @param options Capture options * @returns DataURL of image (JPEG), null if failed */ export declare function captureScreenshot(videoElement: HTMLVideoElement, options?: { format?: 'image/jpeg' | 'image/png'; quality?: number; }): string | null; /** * Convert DataURL to Blob * @param dataUrl DataURL of image * @returns Blob object */ export declare function dataUrlToBlob(dataUrl: string): Promise<Blob>;