feat: add waveform generation and timeline display

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 11:12:36 -04:00
parent c96b0cedc9
commit e05e83f62f
8 changed files with 185 additions and 11 deletions

View File

@@ -13,3 +13,10 @@ export interface ThumbnailSpritesheet {
export async function extractKeyframes(filePath: string): Promise<number[]> {
return invoke<number[]>('extract_keyframes', { filePath });
}
export async function extractWaveform(
filePath: string,
sampleCount: number
): Promise<number[]> {
return invoke<number[]>('extract_waveform', { filePath, sampleCount });
}