This commit is contained in:
手瓜一十雪
2025-04-02 11:51:51 +08:00
parent ac26a99143
commit c4cbac4331
5 changed files with 196 additions and 44 deletions

View File

@@ -30,7 +30,7 @@ export class FFmpegService {
}
public static async getVideoInfo(videoPath: string, thumbnailPath: string): Promise<VideoInfo> {
const result = await await runTask<EncodeArgs, EncodeResult>(getWorkerPath(), { method: 'getVideoInfo', args: [videoPath, thumbnailPath] });
const result = await runTask<EncodeArgs, EncodeResult>(getWorkerPath(), { method: 'getVideoInfo', args: [videoPath, thumbnailPath] });
return result;
}
}