Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Fix video player mobile (#659)

Ameer Al Ashhab8481e592040e
diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
index 28495bad7..7c1301104 100644
--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx
@@ -1574,6 +1574,9 @@ const useTranscriptionProcessing = (
const [subtitles, setSubtitles] = useState<Subtitle[]>([]);
useEffect(() => {
+ if (!transcriptContent && data.transcriptionStatus === "PROCESSING") {
+ return setIsTranscriptionProcessing(false);
+ }
if (transcriptContent) {
const parsedSubtitles = fromVtt(transcriptContent);
setSubtitles(parsedSubtitles);