diff options
| author | bobzel <zzzman@gmail.com> | 2023-08-31 11:50:14 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-08-31 11:50:14 -0400 |
| commit | 7c218639c75e22e1270d4198fb940b439175deee (patch) | |
| tree | e09fd26ce9dd82d728b6c700ceb669cf22cc72ad /src/client/views/nodes/ScreenshotBox.tsx | |
| parent | 0c4f57875c8aaf599ff111a8b8122895d2addab3 (diff) | |
reworked recording workspace UI and switched to recording window, not webcam
Diffstat (limited to 'src/client/views/nodes/ScreenshotBox.tsx')
| -rw-r--r-- | src/client/views/nodes/ScreenshotBox.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/ScreenshotBox.tsx b/src/client/views/nodes/ScreenshotBox.tsx index fa19caae1..4ebc93165 100644 --- a/src/client/views/nodes/ScreenshotBox.tsx +++ b/src/client/views/nodes/ScreenshotBox.tsx @@ -219,6 +219,9 @@ export class ScreenshotBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatabl // } return null; } + Record = () => !this._screenCapture && this.toggleRecording(); + Pause = () => this._screenCapture && this.toggleRecording(); + toggleRecording = async () => { if (!this._screenCapture) { this._audioRec = new MediaRecorder(await navigator.mediaDevices.getUserMedia({ audio: true })); |
