feat: add keyframe index extraction and frame/keyframe navigation

Wire ffprobe-based keyframe indexing through Tauri and auto-load positions after download completes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 11:10:20 -04:00
parent 2f25db3cc5
commit c96b0cedc9
5 changed files with 97 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import { invoke } from '@tauri-apps/api/core';
export interface ThumbnailSpritesheet {
filePath: string;
startIndex: number;
@@ -7,3 +9,7 @@ export interface ThumbnailSpritesheet {
columns: number;
intervalSeconds: number;
}
export async function extractKeyframes(filePath: string): Promise<number[]> {
return invoke<number[]>('extract_keyframes', { filePath });
}