diff options
| author | Jenny Yu <jennyyu212@outlook.com> | 2022-05-12 01:39:26 -0400 |
|---|---|---|
| committer | Jenny Yu <jennyyu212@outlook.com> | 2022-05-12 01:39:26 -0400 |
| commit | 19f0eca0f5f1b0d12ac369f149caf787f88dd9d6 (patch) | |
| tree | 6ae585c7e630d5d45aed72f0533d7ea597180580 /src/client/views/nodes/RecordingBox/RecordingBox.tsx | |
| parent | b47ff4a335d15a259a6db436e8f2a1beb3180f6d (diff) | |
feat: added checkbox for optional screen tracking
Diffstat (limited to 'src/client/views/nodes/RecordingBox/RecordingBox.tsx')
| -rw-r--r-- | src/client/views/nodes/RecordingBox/RecordingBox.tsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/client/views/nodes/RecordingBox/RecordingBox.tsx b/src/client/views/nodes/RecordingBox/RecordingBox.tsx index 807624394..e5b71c183 100644 --- a/src/client/views/nodes/RecordingBox/RecordingBox.tsx +++ b/src/client/views/nodes/RecordingBox/RecordingBox.tsx @@ -38,26 +38,23 @@ export class RecordingBox extends ViewBoxBaseComponent() { } @action - setResult = (info: Upload.FileInformation) => { - // console.log("Setting result to " + info) + setResult = (info: Upload.FileInformation, trackScreen: boolean) => { this.result = info - // console.log(this.result.accessPaths.agnostic.client) this.dataDoc.type = DocumentType.VID; - // console.log(this.videoDuration) this.dataDoc[this.fieldKey + "-duration"] = this.videoDuration; this.dataDoc.layout = VideoBox.LayoutString(this.fieldKey); this.dataDoc[this.props.fieldKey] = new VideoField(this.result.accessPaths.agnostic.client); this.dataDoc[this.fieldKey + "-recorded"] = true; // stringify the presenation and store it - this.dataDoc[this.fieldKey + "-presentation"] = JSON.stringify(RecordingApi.Instance.clear()); + if (trackScreen) { + this.dataDoc[this.fieldKey + "-presentation"] = JSON.stringify(RecordingApi.Instance.clear()); + } } render() { return <div className="recordingBox" ref={this._ref}> {!this.result && <RecordingView setResult={this.setResult} setDuration={this.setVideoDuration} />} - {/* {!this.result ? <RecordingView setResult={this.setResult} /> : - <p>video box</p>} */} </div>; } } |
