From bb8d6b6ad83bf20cdaf0f9a4b6665b3c1371cb95 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 9 Jun 2022 10:40:34 -0400 Subject: got the removing on the shift key to work. --- src/client/views/nodes/RecordingBox/RecordingView.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (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 8c8728fc3..68d85855c 100644 --- a/src/client/views/nodes/RecordingBox/RecordingView.tsx +++ b/src/client/views/nodes/RecordingBox/RecordingView.tsx @@ -55,6 +55,7 @@ export function RecordingView(props: IRecordingViewProps) { } } + useEffect(() => { // console.log('in videos useEffect', finished) @@ -90,6 +91,12 @@ export function RecordingView(props: IRecordingViewProps) { }, [videos]) + + // make useEffect for progess and log when it fires + useEffect(() => { + console.log('progress', progress) + }, [progress]) + useEffect(() => { if (finished) { @@ -198,7 +205,7 @@ export function RecordingView(props: IRecordingViewProps) { const stop = (e: React.MouseEvent) => { e.stopPropagation() if (videoRecorder.current) { - setFinished(true); + setFinished(true); if (videoRecorder.current.state !== "inactive") { videoRecorder.current.stop(); // recorder.current.stream.getTracks().forEach((track: any) => track.stop()) -- cgit v1.2.3-70-g09d2