aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/RecordingBox/RecordingBox.tsx
diff options
context:
space:
mode:
authorJenny Yu <jennyyu212@outlook.com>2022-05-12 01:39:26 -0400
committerJenny Yu <jennyyu212@outlook.com>2022-05-12 01:39:26 -0400
commit19f0eca0f5f1b0d12ac369f149caf787f88dd9d6 (patch)
tree6ae585c7e630d5d45aed72f0533d7ea597180580 /src/client/views/nodes/RecordingBox/RecordingBox.tsx
parentb47ff4a335d15a259a6db436e8f2a1beb3180f6d (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.tsx11
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>;
}
}