Quazim0t0 commited on
Commit
9281306
·
verified ·
1 Parent(s): 3633e82

Upload 51 files

Browse files
src/components/MultiSourceCaptioningView.tsx CHANGED
@@ -116,7 +116,7 @@ export default function MultiSourceCaptioningView() {
116
  }, [videoRef, overlayVideoRef, uploadedUrl, videoUrl, mode]);
117
 
118
  useEffect(() => {
119
- if ((mode === "URL" || mode === "File") && processingVideoRef.current) {
120
  processingVideoRef.current.play().catch(() => {});
121
  }
122
  }, [mode, videoUrl, uploadedUrl]);
 
116
  }, [videoRef, overlayVideoRef, uploadedUrl, videoUrl, mode]);
117
 
118
  useEffect(() => {
119
+ if ((mode === "File") && processingVideoRef.current) {
120
  processingVideoRef.current.play().catch(() => {});
121
  }
122
  }, [mode, videoUrl, uploadedUrl]);