diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index f9558ec55d..6197dec5fb 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -4652,6 +4652,13 @@ "prompt": { "placeholder": "describes the video to generate" }, + "status": { + "completed": "Generation Completed", + "downloading": "Downloading", + "failed": "Failed to generate video", + "in_progress": "Generating", + "queued": "Queued" + }, "title": "Video", "undefined": "No available video" }, diff --git a/src/renderer/src/pages/video/VideoPlayer.tsx b/src/renderer/src/pages/video/VideoPlayer.tsx index 25cf63f896..9aa2759760 100644 --- a/src/renderer/src/pages/video/VideoPlayer.tsx +++ b/src/renderer/src/pages/video/VideoPlayer.tsx @@ -1,22 +1,78 @@ -import { Video } from '@renderer/types/video' -import { CircleXIcon } from 'lucide-react' +import { Progress, Radio, RadioGroup, Spinner } from '@heroui/react' +import { Video, VideoStatus } from '@renderer/types/video' +import { CheckCircleIcon, CircleXIcon } from 'lucide-react' +import { useState } from 'react' import { useTranslation } from 'react-i18next' export interface VideoProps { - video?: Video | null + video?: Video } -export const VideoPlayer = ({ video }: VideoProps) => { +export const VideoPlayer = ({ video: _video }: VideoProps) => { const { t } = useTranslation() + const [video, setVideo] = useState