mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: server-side preview generation for non-native video/audio formats
This commit is contained in:
@@ -315,6 +315,10 @@ export function getFileDownloadUrl(id: string): string {
|
||||
return `/api/v1/files/${id}/download`;
|
||||
}
|
||||
|
||||
export function getFilePreviewUrl(id: string): string {
|
||||
return `/api/v1/files/${id}/preview`;
|
||||
}
|
||||
|
||||
export async function apiDownloadBlob(jobId: string, filename: string): Promise<Blob> {
|
||||
let res: Response;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user