feat: add thumbnail extraction and timeline display

Wire ffmpeg frame extraction into post-download processing and render
adaptive thumbnail strips on the timeline via the asset protocol.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 11:16:10 -04:00
parent 63a89ed433
commit ab053edd14
10 changed files with 245 additions and 8 deletions

View File

@@ -20,3 +20,13 @@ export async function extractWaveform(
): Promise<number[]> {
return invoke<number[]>('extract_waveform', { filePath, sampleCount });
}
export async function extractThumbnails(
filePath: string,
duration: number
): Promise<ThumbnailSpritesheet[]> {
return invoke<ThumbnailSpritesheet[]>('extract_thumbnails', {
filePath,
duration,
});
}