Files
OpenCut/apps/web/src/utils/export.ts
T

23 lines
389 B
TypeScript
Raw Normal View History

2026-01-21 12:52:20 +01:00
import { ExportFormat } from "@/types/export";
export function getExportMimeType({
format,
}: {
format: ExportFormat;
}): string {
const mimeTypes: Record<ExportFormat, string> = {
webm: "video/webm",
mp4: "video/mp4",
};
return mimeTypes[format];
}
export function getExportFileExtension({
format,
}: {
format: ExportFormat;
}): string {
return `.${format}`;
}