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
Merge upstream main into webcam mirror toggle
AjTheSpideyb56daaee3e94
diff --cc src/components/video-editor/VideoEditor.tsxindex b51b5b635,05034632e..926e41532--- a/src/components/video-editor/VideoEditor.tsx+++ b/src/components/video-editor/VideoEditor.tsx@@@ -2047,333 -2137,364 +2148,367 @@@ export default function VideoEditor()</div></div>- <div className="editor-workspace flex-1 min-h-0 relative">- <PanelGroup direction="vertical" className="gap-3 min-h-0">- {/* Top section: preview and contextual settings */}- <Panel defaultSize={67} maxSize={76} minSize={46} className="min-h-[300px]">- <div className="editor-main-deck h-full min-h-0">- <div className="editor-preview-zone min-w-0 h-full">- <div- ref={playerContainerRef}- className={- isFullscreen- ? "fixed inset-0 z-[99999] w-full h-full flex flex-col items-center justify-center bg-[#09090b]"- : "editor-preview-panel w-full h-full flex flex-col items-center justify-center overflow-hidden relative"- }- >- {/* Video preview */}- <div className="w-full min-h-0 flex justify-center items-center flex-auto px-4 pt-4">- <div- className="relative flex justify-center items-center w-auto h-full max-w-full box-border"- style={{- aspectRatio:- aspectRatio === "native"- ? getNativeAspectRatioValue(- videoPlaybackRef.current?.video?.videoWidth ||- DEFAULT_SOURCE_DIMENSIONS.width,- videoPlaybackRef.current?.video?.videoHeight ||- DEFAULT_SOURCE_DIMENSIONS.height,- cropRegion,- )- : getAspectRatioValue(aspectRatio),- }}- >- <VideoPlayback- key={`${videoPath || "no-video"}:${webcamVideoPath || "no-webcam"}`}- aspectRatio={aspectRatio}- ref={videoPlaybackRef}- videoPath={videoPath || ""}- webcamVideoPath={webcamVideoPath || undefined}- webcamLayoutPreset={webcamLayoutPreset}- webcamMaskShape={webcamMaskShape}- webcamMirrored={webcamMirrored}- webcamSizePreset={webcamSizePreset}- webcamPosition={webcamPosition}- onWebcamPositionChange={(pos) => updateState({ webcamPosition: pos })}- onWebcamPositionDragEnd={commitState}- onDurationChange={setDuration}- onTimeUpdate={setCurrentTime}- currentTime={currentTime}- onPlayStateChange={setIsPlaying}- onError={setError}- wallpaper={wallpaper}- zoomRegions={zoomRegions}- selectedZoomId={selectedZoomId}- onSelectZoom={handleSelectZoom}- onZoomFocusChange={handleZoomFocusChange}- onZoomFocusDragEnd={commitState}- isPlaying={isPlaying}- showShadow={shadowIntensity > 0}- shadowIntensity={shadowIntensity}- showBlur={showBlur}- motionBlurAmount={motionBlurAmount}- borderRadius={borderRadius}- padding={padding}- cropRegion={cropRegion}- cursorRecordingData={cursorRecordingData}- trimRegions={trimRegions}- speedRegions={speedRegions}- annotationRegions={annotationOnlyRegions}- selectedAnnotationId={selectedAnnotationId}- onSelectAnnotation={handleSelectAnnotation}- onAnnotationPositionChange={handleAnnotationPositionChange}- onAnnotationSizeChange={handleAnnotationSizeChange}- blurRegions={blurRegions}- selectedBlurId={selectedBlurId}- onSelectBlur={handleSelectBlur}- onBlurPositionChange={handleAnnotationPositionChange}- onBlurSizeChange={handleAnnotationSizeChange}- onBlurDataChange={handleBlurDataPreviewChange}- onBlurDataCommit={commitState}- cursorTelemetry={cursorTelemetry}- cursorClickTimestamps={cursorClickTimestamps}- showCursor={effectiveShowCursor}- cursorSize={cursorSize}- cursorSmoothing={cursorSmoothing}- cursorMotionBlur={cursorMotionBlur}- cursorClickBounce={cursorClickBounce}- cursorClipToBounds={cursorClipToBounds}- isPreviewingZoom={isPreviewingZoom}- />+ {/* Empty state — shown when no video is loaded */}+ {!videoPath && (+ <div className="flex-1 min-h-0 relative">+ <EditorEmptyState+ onVideoImported={(path) => {+ setVideoPath(toFileUrl(path));+ setVideoSourcePath(path);+ setWebcamVideoPath(null);+ setWebcamVideoSourcePath(null);+ }}+ onProjectOpened={async (project, path) => {+ const restored = await applyLoadedProject(project, path);+ if (!restored) {+ toast.error(t("project.invalidFormat"));+ }+ }}+ />+ </div>+ )}++ {videoPath && (+ <div className="editor-workspace flex-1 min-h-0 relative">+ <PanelGroup direction="vertical" className="gap-3 min-h-0">+ {/* Top section: preview and contextual settings */}+ <Panel defaultSize={67} maxSize={76} minSize={46} className="min-h-[300px]">+ <div className="editor-main-deck h-full min-h-0">+ <div className="editor-preview-zone min-w-0 h-full">+ <div+ ref={playerContainerRef}+ className={+ isFullscreen+ ? "fixed inset-0 z-[99999] w-full h-full flex flex-col items-center justify-center bg-[#09090b]"+ : "editor-preview-panel w-full h-full flex flex-col items-center justify-center overflow-hidden relative"+ }+ >+ {/* Video preview */}+ <div className="w-full min-h-0 flex justify-center items-center flex-auto px-4 pt-4">+ <div+ className="relative flex justify-center items-center w-auto h-full max-w-full box-border"+ style={{+ aspectRatio:+ aspectRatio === "native"+ ? getNativeAspectRatioValue(+ videoPlaybackRef.current?.video?.videoWidth ||+ DEFAULT_SOURCE_DIMENSIONS.width,+ videoPlaybackRef.current?.video?.videoHeight ||+ DEFAULT_SOURCE_DIMENSIONS.height,+ cropRegion,+ )+ : getAspectRatioValue(aspectRatio),+ }}+ >+ <VideoPlayback+ key={`${videoPath || "no-video"}:${webcamVideoPath || "no-webcam"}`}+ aspectRatio={aspectRatio}+ ref={videoPlaybackRef}+ videoPath={videoPath || ""}+ webcamVideoPath={webcamVideoPath || undefined}+ webcamLayoutPreset={webcamLayoutPreset}+ webcamMaskShape={webcamMaskShape}++ webcamMirrored={webcamMirrored}+ webcamSizePreset={webcamSizePreset}+ webcamPosition={webcamPosition}+ onWebcamPositionChange={(pos) => updateState({ webcamPosition: pos })}+ onWebcamPositionDragEnd={commitState}+ onDurationChange={setDuration}+ onTimeUpdate={setCurrentTime}+ currentTime={currentTime}+ onPlayStateChange={setIsPlaying}+ onError={setError}+ wallpaper={wallpaper}+ zoomRegions={zoomRegions}+ selectedZoomId={selectedZoomId}+ onSelectZoom={handleSelectZoom}+ onZoomFocusChange={handleZoomFocusChange}+ onZoomFocusDragEnd={commitState}+ isPlaying={isPlaying}+ showShadow={shadowIntensity > 0}+ shadowIntensity={shadowIntensity}+ showBlur={showBlur}+ motionBlurAmount={motionBlurAmount}+ borderRadius={borderRadius}+ padding={padding}+ cropRegion={cropRegion}+ cursorRecordingData={cursorRecordingData}+ trimRegions={trimRegions}+ speedRegions={speedRegions}+ annotationRegions={annotationOnlyRegions}+ selectedAnnotationId={selectedAnnotationId}+ onSelectAnnotation={handleSelectAnnotation}+ onAnnotationPositionChange={handleAnnotationPositionChange}+ onAnnotationSizeChange={handleAnnotationSizeChange}+ blurRegions={blurRegions}+ selectedBlurId={selectedBlurId}+ onSelectBlur={handleSelectBlur}+ onBlurPositionChange={handleAnnotationPositionChange}+ onBlurSizeChange={handleAnnotationSizeChange}+ onBlurDataChange={handleBlurDataPreviewChange}+ onBlurDataCommit={commitState}+ cursorTelemetry={cursorTelemetry}+ cursorClickTimestamps={cursorClickTimestamps}+ showCursor={effectiveShowCursor}+ cursorSize={cursorSize}+ cursorSmoothing={cursorSmoothing}+ cursorMotionBlur={cursorMotionBlur}+ cursorClickBounce={cursorClickBounce}+ cursorClipToBounds={cursorClipToBounds}+ isPreviewingZoom={isPreviewingZoom}+ />+ </div></div>- </div>- {/* Playback controls */}- <div className="w-full flex justify-center items-center h-14 flex-shrink-0 px-4 py-2">- <div className="w-full max-w-[760px]">- <PlaybackControls- isPlaying={isPlaying}- currentTime={currentTime}- duration={duration}- isFullscreen={isFullscreen}- onToggleFullscreen={toggleFullscreen}- onTogglePlayPause={togglePlayPause}- onSeek={handleSeek}- />+ {/* Playback controls */}+ <div className="w-full flex justify-center items-center h-14 flex-shrink-0 px-4 py-2">+ <div className="w-full max-w-[760px]">+ <PlaybackControls+ isPlaying={isPlaying}+ currentTime={currentTime}+ duration={duration}+ isFullscreen={isFullscreen}+ onToggleFullscreen={toggleFullscreen}+ onTogglePlayPause={togglePlayPause}+ onSeek={handleSeek}+ />+ </div></div></div></div>- </div>- <div className="editor-settings-rail min-w-0 h-full">- <SettingsPanel- selected={wallpaper}- onWallpaperChange={(w) => pushState({ wallpaper: w })}- selectedZoomDepth={- selectedZoomId ? zoomRegions.find((z) => z.id === selectedZoomId)?.depth : null- }- onZoomDepthChange={(depth) => selectedZoomId && handleZoomDepthChange(depth)}- selectedZoomCustomScale={- selectedZoomId- ? (zoomRegions.find((z) => z.id === selectedZoomId)?.customScale ?? null)- : null- }- onZoomCustomScaleChange={handleZoomCustomScaleChange}- onZoomCustomScaleCommit={handleZoomCustomScaleCommit}- onZoomPreviewStart={() => setIsPreviewingZoom(true)}- onZoomPreviewEnd={() => setIsPreviewingZoom(false)}- selectedZoomFocusMode={- selectedZoomId- ? (zoomRegions.find((z) => z.id === selectedZoomId)?.focusMode ?? "manual")- : null- }- onZoomFocusModeChange={(mode) =>- selectedZoomId && handleZoomFocusModeChange(mode)- }- selectedZoomFocus={- selectedZoomId- ? (zoomRegions.find((z) => z.id === selectedZoomId)?.focus ?? null)- : null- }- onZoomFocusCoordinateChange={(focus) =>- selectedZoomId && handleZoomFocusChange(selectedZoomId, focus)- }- onZoomFocusCoordinateCommit={commitState}- hasCursorTelemetry={cursorTelemetry.length > 0}- selectedZoomId={selectedZoomId}+ <div className="editor-settings-rail min-w-0 h-full">+ <SettingsPanel+ selected={wallpaper}+ onWallpaperChange={(w) => pushState({ wallpaper: w })}+ selectedZoomDepth={+ selectedZoomId+ ? zoomRegions.find((z) => z.id === selectedZoomId)?.depth+ : null+ }+ onZoomDepthChange={(depth) => selectedZoomId && handleZoomDepthChange(depth)}+ selectedZoomCustomScale={+ selectedZoomId+ ? (zoomRegions.find((z) => z.id === selectedZoomId)?.customScale ?? null)+ : null+ }+ onZoomCustomScaleChange={handleZoomCustomScaleChange}+ onZoomCustomScaleCommit={handleZoomCustomScaleCommit}+ onZoomPreviewStart={() => setIsPreviewingZoom(true)}+ onZoomPreviewEnd={() => setIsPreviewingZoom(false)}+ selectedZoomFocusMode={+ selectedZoomId+ ? (zoomRegions.find((z) => z.id === selectedZoomId)?.focusMode ?? "manual")+ : null+ }+ onZoomFocusModeChange={(mode) =>+ selectedZoomId && handleZoomFocusModeChange(mode)+ }+ selectedZoomFocus={+ selectedZoomId+ ? (zoomRegions.find((z) => z.id === selectedZoomId)?.focus ?? null)+ : null+ }+ onZoomFocusCoordinateChange={(focus) =>+ selectedZoomId && handleZoomFocusChange(selectedZoomId, focus)+ }+ onZoomFocusCoordinateCommit={commitState}+ hasCursorTelemetry={cursorTelemetry.length > 0}+ selectedZoomId={selectedZoomId}+ onZoomDelete={handleZoomDelete}+ selectedZoomRotationPreset={+ selectedZoomId+ ? (zoomRegions.find((z) => z.id === selectedZoomId)?.rotationPreset ?? null)+ : null+ }+ onZoomRotationPresetChange={handleZoomRotationPresetChange}+ selectedTrimId={selectedTrimId}+ onTrimDelete={handleTrimDelete}+ shadowIntensity={shadowIntensity}+ onShadowChange={(v) => updateState({ shadowIntensity: v })}+ onShadowCommit={commitState}+ showBlur={showBlur}+ onBlurChange={(v) => pushState({ showBlur: v })}+ showTrimWaveform={showTrimWaveform}+ onTrimWaveformChange={(v) => pushState({ showTrimWaveform: v })}+ motionBlurAmount={motionBlurAmount}+ onMotionBlurChange={(v) => updateState({ motionBlurAmount: v })}+ onMotionBlurCommit={commitState}+ borderRadius={borderRadius}+ onBorderRadiusChange={(v) => updateState({ borderRadius: v })}+ onBorderRadiusCommit={commitState}+ padding={padding}+ onPaddingChange={(v) => updateState({ padding: v })}+ onPaddingCommit={commitState}+ cropRegion={cropRegion}+ onCropChange={(r) => pushState({ cropRegion: r })}+ aspectRatio={aspectRatio}+ hasWebcam={Boolean(webcamVideoPath)}+ webcamLayoutPreset={webcamLayoutPreset}+ onWebcamLayoutPresetChange={(preset) =>+ pushState({+ webcamLayoutPreset: preset,+ webcamPosition: preset === "picture-in-picture" ? webcamPosition : null,+ })+ }+ webcamMaskShape={webcamMaskShape}+ onWebcamMaskShapeChange={(shape) => pushState({ webcamMaskShape: shape })}++ webcamMirrored={webcamMirrored}++ onWebcamMirroredChange={(mirrored) => pushState({ webcamMirrored: mirrored })}+ webcamSizePreset={webcamSizePreset}+ onWebcamSizePresetChange={(v) => updateState({ webcamSizePreset: v })}+ onWebcamSizePresetCommit={commitState}+ videoElement={videoPlaybackRef.current?.video || null}+ exportQuality={exportQuality}+ onExportQualityChange={setExportQuality}+ exportFormat={exportFormat}+ onExportFormatChange={setExportFormat}+ gifFrameRate={gifFrameRate}+ onGifFrameRateChange={setGifFrameRate}+ gifLoop={gifLoop}+ onGifLoopChange={setGifLoop}+ gifSizePreset={gifSizePreset}+ onGifSizePresetChange={setGifSizePreset}+ gifOutputDimensions={calculateOutputDimensions(+ calculateEffectiveSourceDimensions(+ videoPlaybackRef.current?.video?.videoWidth ||+ DEFAULT_SOURCE_DIMENSIONS.width,+ videoPlaybackRef.current?.video?.videoHeight ||+ DEFAULT_SOURCE_DIMENSIONS.height,+ cropRegion,+ ).width,+ calculateEffectiveSourceDimensions(+ videoPlaybackRef.current?.video?.videoWidth ||+ DEFAULT_SOURCE_DIMENSIONS.width,+ videoPlaybackRef.current?.video?.videoHeight ||+ DEFAULT_SOURCE_DIMENSIONS.height,+ cropRegion,+ ).height,+ gifSizePreset,+ GIF_SIZE_PRESETS,+ aspectRatio === "native"+ ? getNativeAspectRatioValue(+ videoPlaybackRef.current?.video?.videoWidth ||+ DEFAULT_SOURCE_DIMENSIONS.width,+ videoPlaybackRef.current?.video?.videoHeight ||+ DEFAULT_SOURCE_DIMENSIONS.height,+ cropRegion,+ )+ : getAspectRatioValue(aspectRatio),+ )}+ onExport={handleOpenExportDialog}+ onExportPanelOpen={() => {+ setSelectedZoomId(null);+ setSelectedTrimId(null);+ setSelectedSpeedId(null);+ }}+ selectedAnnotationId={selectedAnnotationId}+ annotationRegions={annotationOnlyRegions}+ onAnnotationContentChange={handleAnnotationContentChange}+ onAnnotationTypeChange={handleAnnotationTypeChange}+ onAnnotationStyleChange={handleAnnotationStyleChange}+ onAnnotationFigureDataChange={handleAnnotationFigureDataChange}+ onAnnotationDuplicate={handleAnnotationDuplicate}+ onAnnotationDelete={handleAnnotationDelete}+ selectedBlurId={selectedBlurId}+ blurRegions={blurRegions}+ onBlurDataChange={handleBlurDataPanelChange}+ onBlurDataCommit={commitState}+ onBlurDelete={handleAnnotationDelete}+ selectedSpeedId={selectedSpeedId}+ selectedSpeedValue={+ selectedSpeedId+ ? (speedRegions.find((r) => r.id === selectedSpeedId)?.speed ?? null)+ : null+ }+ onSpeedChange={handleSpeedChange}+ onSpeedDelete={handleSpeedDelete}+ unsavedExport={unsavedExport}+ onSaveUnsavedExport={handleSaveUnsavedExport}+ onSaveDiagnostic={handleSaveDiagnostic}+ showCursor={showCursor}+ onShowCursorChange={setShowCursor}+ cursorSize={cursorSize}+ onCursorSizeChange={setCursorSize}+ cursorSmoothing={cursorSmoothing}+ onCursorSmoothingChange={setCursorSmoothing}+ cursorMotionBlur={cursorMotionBlur}+ onCursorMotionBlurChange={setCursorMotionBlur}+ cursorClickBounce={cursorClickBounce}+ onCursorClickBounceChange={setCursorClickBounce}+ cursorClipToBounds={cursorClipToBounds}+ onCursorClipToBoundsChange={setCursorClipToBounds}+ hasCursorData={+ cursorTelemetry.length > 0 ||+ hasNativeCursorRecordingData(cursorRecordingData)+ }+ showCursorSettings={showCursorSettings}+ />+ </div>+ </div>+ </Panel>++ <PanelResizeHandle className="editor-resize-handle group">+ <div className="w-10 h-1 bg-white/20 rounded-full transition-colors group-hover:bg-[#34B27B]/70"></div>+ </PanelResizeHandle>++ {/* Full-width timeline */}+ <Panel defaultSize={33} maxSize={54} minSize={24} className="min-h-[210px]">+ <div className="editor-timeline-panel h-full overflow-hidden flex flex-col">+ <TimelineEditor+ videoDuration={duration}+ currentTime={currentTime}+ onSeek={handleSeek}+ cursorTelemetry={cursorTelemetry}+ zoomRegions={zoomRegions}+ onZoomAdded={handleZoomAdded}+ onZoomSuggested={handleZoomSuggested}+ onZoomSpanChange={handleZoomSpanChange}onZoomDelete={handleZoomDelete}- selectedZoomRotationPreset={- selectedZoomId- ? (zoomRegions.find((z) => z.id === selectedZoomId)?.rotationPreset ?? null)- : null- }- onZoomRotationPresetChange={handleZoomRotationPresetChange}- selectedTrimId={selectedTrimId}+ selectedZoomId={selectedZoomId}+ onSelectZoom={handleSelectZoom}+ trimRegions={trimRegions}+ onTrimAdded={handleTrimAdded}+ onTrimSpanChange={handleTrimSpanChange}onTrimDelete={handleTrimDelete}- shadowIntensity={shadowIntensity}- onShadowChange={(v) => updateState({ shadowIntensity: v })}- onShadowCommit={commitState}- showBlur={showBlur}- onBlurChange={(v) => pushState({ showBlur: v })}- motionBlurAmount={motionBlurAmount}- onMotionBlurChange={(v) => updateState({ motionBlurAmount: v })}- onMotionBlurCommit={commitState}- borderRadius={borderRadius}- onBorderRadiusChange={(v) => updateState({ borderRadius: v })}- onBorderRadiusCommit={commitState}- padding={padding}- onPaddingChange={(v) => updateState({ padding: v })}- onPaddingCommit={commitState}- cropRegion={cropRegion}- onCropChange={(r) => pushState({ cropRegion: r })}- aspectRatio={aspectRatio}- hasWebcam={Boolean(webcamVideoPath)}- webcamLayoutPreset={webcamLayoutPreset}- onWebcamLayoutPresetChange={(preset) =>- pushState({- webcamLayoutPreset: preset,- webcamPosition: preset === "picture-in-picture" ? webcamPosition : null,- })- }- webcamMaskShape={webcamMaskShape}- onWebcamMaskShapeChange={(shape) => pushState({ webcamMaskShape: shape })}- webcamMirrored={webcamMirrored}- onWebcamMirroredChange={(mirrored) => pushState({ webcamMirrored: mirrored })}- webcamSizePreset={webcamSizePreset}- onWebcamSizePresetChange={(v) => updateState({ webcamSizePreset: v })}- onWebcamSizePresetCommit={commitState}- videoElement={videoPlaybackRef.current?.video || null}- exportQuality={exportQuality}- onExportQualityChange={setExportQuality}- exportFormat={exportFormat}- onExportFormatChange={setExportFormat}- gifFrameRate={gifFrameRate}- onGifFrameRateChange={setGifFrameRate}- gifLoop={gifLoop}- onGifLoopChange={setGifLoop}- gifSizePreset={gifSizePreset}- onGifSizePresetChange={setGifSizePreset}- gifOutputDimensions={calculateOutputDimensions(- calculateEffectiveSourceDimensions(- videoPlaybackRef.current?.video?.videoWidth ||- DEFAULT_SOURCE_DIMENSIONS.width,- videoPlaybackRef.current?.video?.videoHeight ||- DEFAULT_SOURCE_DIMENSIONS.height,- cropRegion,- ).width,- calculateEffectiveSourceDimensions(- videoPlaybackRef.current?.video?.videoWidth ||- DEFAULT_SOURCE_DIMENSIONS.width,- videoPlaybackRef.current?.video?.videoHeight ||- DEFAULT_SOURCE_DIMENSIONS.height,- cropRegion,- ).height,- gifSizePreset,- GIF_SIZE_PRESETS,- aspectRatio === "native"- ? getNativeAspectRatioValue(- videoPlaybackRef.current?.video?.videoWidth ||- DEFAULT_SOURCE_DIMENSIONS.width,- videoPlaybackRef.current?.video?.videoHeight ||- DEFAULT_SOURCE_DIMENSIONS.height,- cropRegion,- )- : getAspectRatioValue(aspectRatio),- )}- onExport={handleOpenExportDialog}- selectedAnnotationId={selectedAnnotationId}+ selectedTrimId={selectedTrimId}+ onSelectTrim={handleSelectTrim}+ speedRegions={speedRegions}+ onSpeedAdded={handleSpeedAdded}+ onSpeedSpanChange={handleSpeedSpanChange}+ onSpeedDelete={handleSpeedDelete}+ selectedSpeedId={selectedSpeedId}+ onSelectSpeed={handleSelectSpeed}annotationRegions={annotationOnlyRegions}- onAnnotationContentChange={handleAnnotationContentChange}- onAnnotationTypeChange={handleAnnotationTypeChange}- onAnnotationStyleChange={handleAnnotationStyleChange}- onAnnotationFigureDataChange={handleAnnotationFigureDataChange}- onAnnotationDuplicate={handleAnnotationDuplicate}+ onAnnotationAdded={handleAnnotationAdded}+ onAnnotationSpanChange={handleAnnotationSpanChange}onAnnotationDelete={handleAnnotationDelete}- selectedBlurId={selectedBlurId}+ selectedAnnotationId={selectedAnnotationId}+ onSelectAnnotation={handleSelectAnnotation}blurRegions={blurRegions}- onBlurDataChange={handleBlurDataPanelChange}- onBlurDataCommit={commitState}+ onBlurAdded={handleBlurAdded}+ onBlurSpanChange={handleAnnotationSpanChange}onBlurDelete={handleAnnotationDelete}- selectedSpeedId={selectedSpeedId}- selectedSpeedValue={- selectedSpeedId- ? (speedRegions.find((r) => r.id === selectedSpeedId)?.speed ?? null)- : null- }- onSpeedChange={handleSpeedChange}- onSpeedDelete={handleSpeedDelete}- unsavedExport={unsavedExport}- onSaveUnsavedExport={handleSaveUnsavedExport}- onSaveDiagnostic={handleSaveDiagnostic}- showCursor={showCursor}- onShowCursorChange={setShowCursor}- cursorSize={cursorSize}- onCursorSizeChange={setCursorSize}- cursorSmoothing={cursorSmoothing}- onCursorSmoothingChange={setCursorSmoothing}- cursorMotionBlur={cursorMotionBlur}- onCursorMotionBlurChange={setCursorMotionBlur}- cursorClickBounce={cursorClickBounce}- onCursorClickBounceChange={setCursorClickBounce}- cursorClipToBounds={cursorClipToBounds}- onCursorClipToBoundsChange={setCursorClipToBounds}- hasCursorData={- cursorTelemetry.length > 0 || hasNativeCursorRecordingData(cursorRecordingData)+ selectedBlurId={selectedBlurId}+ onSelectBlur={handleSelectBlur}+ aspectRatio={aspectRatio}+ onAspectRatioChange={(ar) =>+ pushState({+ aspectRatio: ar,+ webcamLayoutPreset:+ (isPortraitAspectRatio(ar) && webcamLayoutPreset === "dual-frame") ||+ (!isPortraitAspectRatio(ar) && webcamLayoutPreset === "vertical-stack")+ ? "picture-in-picture"+ : webcamLayoutPreset,+ })}- showCursorSettings={showCursorSettings}+ videoUrl={videoPath ?? undefined}+ showTrimWaveform={showTrimWaveform}/></div>- </div>- </Panel>-- <PanelResizeHandle className="editor-resize-handle group">- <div className="w-10 h-1 bg-white/20 rounded-full transition-colors group-hover:bg-[#34B27B]/70"></div>- </PanelResizeHandle>-- {/* Full-width timeline */}- <Panel defaultSize={33} maxSize={54} minSize={24} className="min-h-[210px]">- <div className="editor-timeline-panel h-full overflow-hidden flex flex-col">- <TimelineEditor- videoDuration={duration}- currentTime={currentTime}- onSeek={handleSeek}- cursorTelemetry={cursorTelemetry}- zoomRegions={zoomRegions}- onZoomAdded={handleZoomAdded}- onZoomSuggested={handleZoomSuggested}- onZoomSpanChange={handleZoomSpanChange}- onZoomDelete={handleZoomDelete}- selectedZoomId={selectedZoomId}- onSelectZoom={handleSelectZoom}- trimRegions={trimRegions}- onTrimAdded={handleTrimAdded}- onTrimSpanChange={handleTrimSpanChange}- onTrimDelete={handleTrimDelete}- selectedTrimId={selectedTrimId}- onSelectTrim={handleSelectTrim}- speedRegions={speedRegions}- onSpeedAdded={handleSpeedAdded}- onSpeedSpanChange={handleSpeedSpanChange}- onSpeedDelete={handleSpeedDelete}- selectedSpeedId={selectedSpeedId}- onSelectSpeed={handleSelectSpeed}- annotationRegions={annotationOnlyRegions}- onAnnotationAdded={handleAnnotationAdded}- onAnnotationSpanChange={handleAnnotationSpanChange}- onAnnotationDelete={handleAnnotationDelete}- selectedAnnotationId={selectedAnnotationId}- onSelectAnnotation={handleSelectAnnotation}- blurRegions={blurRegions}- onBlurAdded={handleBlurAdded}- onBlurSpanChange={handleAnnotationSpanChange}- onBlurDelete={handleAnnotationDelete}- selectedBlurId={selectedBlurId}- onSelectBlur={handleSelectBlur}- aspectRatio={aspectRatio}- onAspectRatioChange={(ar) =>- pushState({- aspectRatio: ar,- webcamLayoutPreset:- (isPortraitAspectRatio(ar) && webcamLayoutPreset === "dual-frame") ||- (!isPortraitAspectRatio(ar) && webcamLayoutPreset === "vertical-stack")- ? "picture-in-picture"- : webcamLayoutPreset,- })- }- />- </div>- </Panel>- </PanelGroup>- </div>+ </Panel>+ </PanelGroup>+ </div>+ )}<ExportDialogisOpen={showExportDialog}