Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions src/components/VideoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,26 @@ return () => {
};
}, [videoSrc]);

const exportStatusAnnouncement = useMemo(() => {
if (status === "loading-engine") {
return "Loading video processing engine, please wait.";
}

if (status === "exporting") {
return `Export started. Exporting video: ${progress}%`;
}

if (status === "done") {
return "Export complete! Video ready to download.";
}

if (status === "error") {
return `Export failed: ${error}`;
}

return "";
}, [error, progress, status]);

return (
<div className="min-h-screen relative flex flex-col" style={{ background: "var(--bg)" }}>
<ExportOverlay
Expand All @@ -373,10 +393,8 @@ return () => {
/>
<OnboardingTour />

<div aria-live="polite" aria-atomic="true" className="sr-only">
{status === "exporting" && `Exporting video: ${progress}%`}
{status === "done" && "Export complete! Video ready to download."}
{status === "error" && `Export failed: ${error}`}
<div role="status" aria-live="polite" aria-atomic="true" className="sr-only">
{exportStatusAnnouncement}
</div>

<div className="max-w-6xl mx-auto px-4 py-8 pb-6 flex-1 w-full">
Expand Down