fix(video): transcribe archived videos and show progress (#560)

This commit is contained in:
Yiling-J
2026-12-04 15:37:58 +08:00
committed by GitHub
parent d3899d1257
commit 72a7f68c92
21 changed files with 408 additions and 171 deletions
+7
View File
@@ -37,6 +37,13 @@ interface TranscriptVideoProxy {
height: number
}
// Archive and restore move the original while the full video proxy stays available.
export const transcriptVideoStatuses = ['processed', 'archiving', 'archived', 'restoring'] as const
export function isTranscriptVideoReady(status: string) {
return transcriptVideoStatuses.some((readyStatus) => readyStatus === status)
}
export function selectTranscriptVideoProxyKey(
media?: { videoTranscodes?: TranscriptVideoProxy[]; videoPreview?: { key?: string } } | null,
): string | undefined {