Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: preserve cursor and audio in exports
EtienneLescot238fc97c6d60
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsxindex ae223acb4..9af6c255d 100644--- a/src/components/video-editor/VideoEditor.tsx+++ b/src/components/video-editor/VideoEditor.tsx@@ -1661,7 +1661,6 @@ export default function VideoEditor() {padding,cropRegion,cursorRecordingData,- cursorRecordingDataLoading,cursorScale: showCursor ? cursorSize : 0,cursorSmoothing,cursorMotionBlur,@@ -1746,7 +1745,6 @@ export default function VideoEditor() {padding,cropRegion,cursorRecordingData,- cursorRecordingDataLoading,annotationRegions,isPlaying,aspectRatio,diff --git a/src/lib/exporter/audioEncoder.ts b/src/lib/exporter/audioEncoder.tsindex 870fdc389..18dac6226 100644--- a/src/lib/exporter/audioEncoder.ts+++ b/src/lib/exporter/audioEncoder.ts@@ -14,8 +14,8 @@ export interface ExportAudioCodec {}const EXPORT_AUDIO_CODECS: ExportAudioCodec[] = [- { encoderCodec: "mp4a.40.2", muxerCodec: "aac", label: "AAC" },{ encoderCodec: "opus", muxerCodec: "opus", label: "Opus" },+ { encoderCodec: "mp4a.40.2", muxerCodec: "aac", label: "AAC" },];export class AudioProcessor {diff --git a/src/lib/exporter/videoExporter.test.ts b/src/lib/exporter/videoExporter.test.tsindex b90ff3916..3f14ec16c 100644--- a/src/lib/exporter/videoExporter.test.ts+++ b/src/lib/exporter/videoExporter.test.ts@@ -73,7 +73,6 @@ describe("isSourceCopyFastPathEligible", () => {expect(isSourceCopyFastPathEligible(createConfig({- cursorRecordingDataLoading: true,cursorScale: 2,}),videoInfo,diff --git a/src/lib/exporter/videoExporter.ts b/src/lib/exporter/videoExporter.tsindex 231548d6e..973e6befa 100644--- a/src/lib/exporter/videoExporter.ts+++ b/src/lib/exporter/videoExporter.ts@@ -40,7 +40,6 @@ export interface VideoExporterConfig extends ExportConfig {webcamSizePreset?: WebcamSizePreset;webcamPosition?: { cx: number; cy: number } | null;cursorRecordingData?: CursorRecordingData | null;- cursorRecordingDataLoading?: boolean;cursorScale?: number;cursorSmoothing?: number;cursorMotionBlur?: number;@@ -71,19 +70,7 @@ function hasActiveSpeedRegions(regions?: SpeedRegion[]) {}function hasNativeCursorOverlay(config: VideoExporterConfig) {- if ((config.cursorScale ?? 0) <= 0) {- return false;- }-- if (config.cursorRecordingDataLoading) {- return true;- }-- return Boolean(- config.cursorRecordingData?.provider === "native" &&- config.cursorRecordingData.samples.length > 0 &&- config.cursorRecordingData.assets.length > 0,- );+ return (config.cursorScale ?? 0) > 0;}function hasCursorHighlightOverlay(config: VideoExporterConfig) {