diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-28 21:52:03 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-28 21:52:03 +0200 |
| commit | 70a9bfebb196d5c0bde35ce0a165b696bb9ae1d0 (patch) | |
| tree | 3c84f88db66f518a8bd7d79a123cf3181fa93801 /apps/web/src/types | |
| parent | d4e08bb7e3ecfe944f683a26f063e6d7a487c992 (diff) | |
| download | opencut-70a9bfebb196d5c0bde35ce0a165b696bb9ae1d0.tar.gz | |
feat: add audio support for export
Diffstat (limited to 'apps/web/src/types')
| -rw-r--r-- | apps/web/src/types/export.ts | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/apps/web/src/types/export.ts b/apps/web/src/types/export.ts index 2fa10a50..093268ce 100644 --- a/apps/web/src/types/export.ts +++ b/apps/web/src/types/export.ts @@ -1,17 +1,18 @@ -export type ExportFormat = "mp4" | "webm";
-export type ExportQuality = "low" | "medium" | "high" | "very_high";
-
-export interface ExportOptions {
- format: ExportFormat;
- quality: ExportQuality;
- fps?: number;
- onProgress?: (progress: number) => void;
- onCancel?: () => boolean;
-}
-
-export interface ExportResult {
- success: boolean;
- buffer?: ArrayBuffer;
- error?: string;
- cancelled?: boolean;
-}
+export type ExportFormat = "mp4" | "webm"; +export type ExportQuality = "low" | "medium" | "high" | "very_high"; + +export interface ExportOptions { + format: ExportFormat; + quality: ExportQuality; + fps?: number; + includeAudio?: boolean; + onProgress?: (progress: number) => void; + onCancel?: () => boolean; +} + +export interface ExportResult { + success: boolean; + buffer?: ArrayBuffer; + error?: string; + cancelled?: boolean; +} |
