From 7f0bcea4ca91eccb9e35f25804a4f6feed8c4e11 Mon Sep 17 00:00:00 2001 From: creotove Date: Wed, 25 Jun 2025 15:29:20 +0530 Subject: Feat: basic audio waveform added. --- apps/web/src/components/editor/timeline.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'apps/web/src/components/editor/timeline.tsx') diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx index ce0ffa30..cc7d7f3a 100644 --- a/apps/web/src/components/editor/timeline.tsx +++ b/apps/web/src/components/editor/timeline.tsx @@ -35,6 +35,7 @@ import { SelectTrigger, SelectValue, } from "../ui/select"; +import AudioWaveform from "./audio-waveform"; export function Timeline() { // Timeline shows all tracks (video, audio, effects) and their clips. @@ -1626,7 +1627,21 @@ function TimelineTrackContent({ ); } - // Fallback for audio or videos without thumbnails + if (mediaItem.type === "audio") { + return ( +
+
+ +
+
+ ); + } + + // Fallback for videos without thumbnails return ( {clip.name} ); -- cgit v1.3.1