Create polished demo videos without editing skills. Mac/Windows/Linux
fix(ts): resolve VideoExporterConfig initialization error in VideoEditor.tsx
Mahdy Ariefb9316b4ae108
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsxindex 7faa2756..0f084da4 100644--- a/src/components/video-editor/VideoEditor.tsx+++ b/src/components/video-editor/VideoEditor.tsx@@ -2997,6 +2997,7 @@ export default function VideoEditor() {masterAudioVolume: masterAudioVolume ?? 1,audioTrackVolume: audioTrackVolume ?? 1,masterAudioMuted: masterAudioMuted ?? false,+ masterAudioSoloed: masterAudioSoloed ?? false,previewWidth,previewHeight,onProgress: (progress: ExportProgress) => {diff --git a/src/lib/exporter/videoExporter.ts b/src/lib/exporter/videoExporter.tsindex fa4a40be..a6b3e030 100644--- a/src/lib/exporter/videoExporter.ts+++ b/src/lib/exporter/videoExporter.ts@@ -59,10 +59,10 @@ interface VideoExporterConfig extends ExportConfig {previewWidth?: number;previewHeight?: number;onProgress?: (progress: ExportProgress) => void;- masterAudioVolume: number;- masterAudioMuted: boolean;- masterAudioSoloed: boolean;- audioTrackVolume: number;+ masterAudioVolume?: number;+ masterAudioMuted?: boolean;+ masterAudioSoloed?: boolean;+ audioTrackVolume?: number;}export class VideoExporter {