aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael <michael.foiani@gmail.com>2022-06-13 14:09:46 -0400
committerMichael <michael.foiani@gmail.com>2022-06-13 14:09:46 -0400
commit1dfb694ffa8f34a834387eb073ffb9bd3a678039 (patch)
treeef5851e6f602457ac1a2c8305d14df7cecbcc17e /src
parentd91ff1f937e9588b88258b07738eea56bac5fcca (diff)
debug w bob
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RecordingApi.ts2
-rw-r--r--src/client/views/nodes/RecordingBox/RecordingView.tsx11
2 files changed, 7 insertions, 6 deletions
diff --git a/src/client/util/RecordingApi.ts b/src/client/util/RecordingApi.ts
index d56093cee..bcd21a48a 100644
--- a/src/client/util/RecordingApi.ts
+++ b/src/client/util/RecordingApi.ts
@@ -48,8 +48,6 @@ export class RecordingApi {
// for now, set playFFView
this.playFFView = null;
this.timers = null;
-
- // put a pointerdown event on the doucment to see what the target
}
// little helper :)
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">