mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-05 15:44:28 +00:00
fix(video): transcribe archived videos and show progress (#560)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user