From 1dfb694ffa8f34a834387eb073ffb9bd3a678039 Mon Sep 17 00:00:00 2001
From: Michael <michael.foiani@gmail.com>
Date: Mon, 13 Jun 2022 14:09:46 -0400
Subject: debug w bob

---
 src/client/views/nodes/RecordingBox/RecordingView.tsx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'src/client/views/nodes/RecordingBox/RecordingView.tsx')

diff --git a/src/client/views/nodes/RecordingBox/RecordingView.tsx b/src/client/views/nodes/RecordingBox/RecordingView.tsx
index 15883632a..d4d19f3d8 100644
--- a/src/client/views/nodes/RecordingBox/RecordingView.tsx
+++ b/src/client/views/nodes/RecordingBox/RecordingView.tsx
@@ -60,7 +60,7 @@ export function RecordingView(props: IRecordingViewProps) {
     }
   }
 
-  // useEffect(() => console.debug('progress', progress), [progress])
+  useEffect(() => console.log('progress', progress), [progress])
 
   useEffect(() => {
     if (finished) {
@@ -93,7 +93,8 @@ export function RecordingView(props: IRecordingViewProps) {
   useEffect(() => {
     let interval: any = null;
     if (recording) {
-      interval = setInterval(() => {
+      interval = setTimeout(() => {
+        console.log('update interval')
         setRecordingTimer(unit => unit + 1);
       }, 10);
     } else if (!recording && recordingTimer !== 0) {
@@ -201,7 +202,9 @@ export function RecordingView(props: IRecordingViewProps) {
     setDoUndo(prev => !prev);
   }
 
-  const handleOnTimeUpdate = () => { playing && setVideoProgressHelper(videoElementRef.current!.currentTime); };
+  const handleOnTimeUpdate = () => {
+    playing && setVideoProgressHelper(videoElementRef.current!.currentTime);
+  };
 
   const millisecondToMinuteSecond = (milliseconds: number) => {
     const toTwoDigit = (digit: number) => {
@@ -218,7 +221,7 @@ export function RecordingView(props: IRecordingViewProps) {
         <video id={`video-${props.id}`}
           autoPlay
           muted
-          onTimeUpdate={() => handleOnTimeUpdate()}
+          onTimeUpdate={handleOnTimeUpdate}
           ref={videoElementRef}
         />
         <div className="recording-sign">
-- 
cgit v1.2.3-70-g09d2

