From 1c1c56477f9a0a3e895d693557130c184dc11fc1 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 21 Apr 2021 13:24:49 -0400 Subject: from last --- src/client/views/nodes/ScreenshotBox.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/ScreenshotBox.tsx b/src/client/views/nodes/ScreenshotBox.tsx index 3c281086a..9d64aaa35 100644 --- a/src/client/views/nodes/ScreenshotBox.tsx +++ b/src/client/views/nodes/ScreenshotBox.tsx @@ -123,12 +123,13 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent { @@ -174,15 +175,16 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent { this._videoRef = r; setTimeout(() => { - if (this.rootDoc.mediaState === "pendingRecording" && this._videoRef) { // TODO glr: use mediaState + if (this.rootDoc.mediaState === "pendingRecording" && this._videoRef) { this.toggleRecording(); } - }, 1000); + }, 100); }} autoPlay={this._screenCapture} style={{ width: this._screenCapture ? "100%" : undefined, height: this._screenCapture ? "100%" : undefined }} @@ -191,7 +193,7 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent e.preventDefault()}> Not supported. - ; + ; } _numScreens = 5; -- cgit v1.2.3-70-g09d2