Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: minor improvement to ai transcription intervals (#992)

Ameer Al Ashhabc9f08a67e5b4
diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsx
index 769e5010d..c7d9d9349 100644
--- a/apps/web/app/s/[videoId]/Share.tsx
+++ b/apps/web/app/s/[videoId]/Share.tsx
@@ -132,7 +132,9 @@ const useVideoStatus = (
return shouldContinuePolling() ? 2000 : false;
},
- refetchIntervalInBackground: false,
+ refetchIntervalInBackground: true,
+ refetchOnWindowFocus: true,
+ refetchOnMount: "always",
staleTime: 1000,
});
};
@@ -196,7 +198,6 @@ export const Share = ({
if (aiGenerationEnabled && aiData.processing === true) {
return true;
}
- return false;
}
return false;
@@ -204,13 +205,6 @@ export const Share = ({
const aiLoading = shouldShowLoading();
- console.log({
- aiLoading,
- aiData,
- transcriptionStatus,
- aiGenerationEnabled,
- });
-
const handleSeek = (time: number) => {
if (playerRef.current) {
playerRef.current.currentTime = time;