diff options
Diffstat (limited to 'src/client/views/nodes/RecordingBox/RecordingView.tsx')
| -rw-r--r-- | src/client/views/nodes/RecordingBox/RecordingView.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
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()) |
