removed home
This commit is contained in:
@ -237,6 +237,7 @@ export default function WaveformTimeline({
|
||||
const headCanvasRef = useRef<HTMLCanvasElement>(null);
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const [audioError, setAudioError] = useState<string | null>(null);
|
||||
const [waveformReady, setWaveformReady] = useState(false);
|
||||
|
||||
const videoUrl = useEditorStore((s) => s.videoUrl);
|
||||
const videoPath = useEditorStore((s) => s.videoPath);
|
||||
@ -349,6 +350,7 @@ export default function WaveformTimeline({
|
||||
if (cancelled) return;
|
||||
waveformDataRef.current = waveformData;
|
||||
drawStaticWaveformRef.current();
|
||||
setWaveformReady(true);
|
||||
} catch (err) {
|
||||
if (cancelled || (err instanceof DOMException && err.name === 'AbortError')) {
|
||||
console.log('[WaveformTimeline] req=', requestId, 'aborted/cancelled');
|
||||
@ -1328,7 +1330,7 @@ export default function WaveformTimeline({
|
||||
Retry
|
||||
</button>
|
||||
</div>
|
||||
) : !waveformDataRef.current ? (
|
||||
) : !waveformReady ? (
|
||||
<div className="flex-1 flex items-center justify-center">
|
||||
<div className="flex flex-col items-center gap-3">
|
||||
<div className="animate-spin rounded-full h-8 w-8 border-2 border-editor-border border-t-indigo-400" />
|
||||
|
||||
Reference in New Issue
Block a user