feat(transcode): add PDF proxy support for TXT and CSV files

This commit is contained in:
yiling
2026-07-19 21:19:43 +08:00
parent 817889e501
commit 081dbf6d39
21 changed files with 558 additions and 24 deletions
+7
View File
@@ -124,13 +124,20 @@ declare global {
codec: string
}
export interface PdfTranscode {
key?: string
url?: string
}
export interface MediaInfo {
duration: number
filesize: number
frames: number
proxyType?: 'image' | 'video' | 'audio' | 'pdf'
imageTranscodes: ImageTranscode[]
videoTranscodes: VideoTranscode[]
videoPreview: VideoTranscode
pdfTranscode?: PdfTranscode
sprite?: SpriteInfo
poster?: PosterInfo
thumbnail?: ImageTranscode