From 017b5b59e924fa05b79e85d0e22c355577d440d5 Mon Sep 17 00:00:00 2001 From: an-lee Date: Thu, 11 Jan 2024 17:53:46 +0800 Subject: [PATCH] fix inline transcription in video --- enjoy/src/renderer/components/videos/video-detail.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enjoy/src/renderer/components/videos/video-detail.tsx b/enjoy/src/renderer/components/videos/video-detail.tsx index 9547dfaa..921203f1 100644 --- a/enjoy/src/renderer/components/videos/video-detail.tsx +++ b/enjoy/src/renderer/components/videos/video-detail.tsx @@ -35,6 +35,8 @@ export const VideoDetail = (props: { id?: string; md5?: string }) => { const [isPlaying, setIsPlaying] = useState(false); const [isLooping, setIsLooping] = useState(false); const [playBackRate, setPlaybackRate] = useState(1); + const [displayInlineCaption, setDisplayInlineCaption] = + useState(true); const onTransactionUpdate = (event: CustomEvent) => { const { model, action, record } = event.detail || {}; @@ -109,6 +111,8 @@ export const VideoDetail = (props: { id?: string; md5?: string }) => { setIsLooping={setIsLooping} playBackRate={playBackRate} setPlaybackRate={setPlaybackRate} + displayInlineCaption={displayInlineCaption} + setDisplayInlineCaption={setDisplayInlineCaption} />