Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: add global speed control and additional properties to audio, control panel, editor, timeline, and video types

CristianOlivera186f3e0998600
diff --git a/types/audio.types.ts b/types/audio.types.ts
index 8adb5eb..4e300f4 100644
--- a/types/audio.types.ts
+++ b/types/audio.types.ts
@@ -6,7 +6,7 @@ export interface AudioTrack {
duration: number;
volume: number;
loop: boolean;
- trimStart?: number;
+ trimStart?: number;
}
export interface UploadedAudio {
@@ -78,4 +78,6 @@ export interface AudioFragmentTrackItemProps {
onDragStateChange?: (isDragging: boolean) => void;
onMouseEnter?: () => void;
onMouseLeave?: () => void;
+ contentDuration?: number;
+ speed?: number;
}
diff --git a/types/control-panel.types.ts b/types/control-panel.types.ts
index f1aa35e..7d1bcfe 100644
--- a/types/control-panel.types.ts
+++ b/types/control-panel.types.ts
@@ -95,4 +95,7 @@ export interface ControlPanelProps {
mediaType?: "video" | "image";
wallpaperShowAll?: boolean;
onWallpaperShowAllChange?: (value: boolean) => void;
+ globalSpeed?: number;
+ onGlobalSpeedChange?: (speed: number) => void;
+
}
diff --git a/types/editor.types.ts b/types/editor.types.ts
index c827fe3..52e5020 100644
--- a/types/editor.types.ts
+++ b/types/editor.types.ts
@@ -126,4 +126,5 @@ export interface VideoCanvasProps {
isRestoringProjectRef?: React.MutableRefObject<boolean>;
activeMediaAspect?: number | null;
activeClipUrl?: string | null;
+ onPaddingChange?: (value: number) => void;
}
\ No newline at end of file
diff --git a/types/timeline.types.ts b/types/timeline.types.ts
index 7038519..65f1653 100644
--- a/types/timeline.types.ts
+++ b/types/timeline.types.ts
@@ -37,4 +37,7 @@ export interface TimelineProps {
selectedAudioTrackId?: string | null;
onSelectAudioTrack?: (trackId: string | null) => void;
onUpdateAudioTrack?: (trackId: string, updates: Partial<AudioTrack>) => void;
+ globalSpeed?: number;
+ isPlaying?: boolean;
+ onZoomChange?: (zoom: number) => void;
}
\ No newline at end of file
diff --git a/types/video.types.ts b/types/video.types.ts
index 7d4abc6..dae6f69 100644
--- a/types/video.types.ts
+++ b/types/video.types.ts
@@ -28,6 +28,7 @@ export interface ExportSettings {
videoClips?: VideoTrackClip[];
videoClipBlobs?: Map<string, Blob>;
clipAudioStates?: Record<string, boolean>;
+ speed?: number;
}
export interface ExportProgress {