diff options
| author | Jenny Yu <jennyyu212@outlook.com> | 2022-05-12 01:13:34 -0400 |
|---|---|---|
| committer | Jenny Yu <jennyyu212@outlook.com> | 2022-05-12 01:13:34 -0400 |
| commit | b47ff4a335d15a259a6db436e8f2a1beb3180f6d (patch) | |
| tree | 5e30b68a279c9ca0ec4dcd73f1f61dfdd6750904 /src/client/views/nodes/RecordingBox/RecordingBox.tsx | |
| parent | 7ed023474201b31c1d8b513ee8020c2847ae8dd0 (diff) | |
feat: option to recreate recording
Diffstat (limited to 'src/client/views/nodes/RecordingBox/RecordingBox.tsx')
| -rw-r--r-- | src/client/views/nodes/RecordingBox/RecordingBox.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/nodes/RecordingBox/RecordingBox.tsx b/src/client/views/nodes/RecordingBox/RecordingBox.tsx index a7524df37..807624394 100644 --- a/src/client/views/nodes/RecordingBox/RecordingBox.tsx +++ b/src/client/views/nodes/RecordingBox/RecordingBox.tsx @@ -24,6 +24,7 @@ export class RecordingBox extends ViewBoxBaseComponent() { } componentDidMount() { + console.log("set native width and height") Doc.SetNativeWidth(this.dataDoc, 1280); Doc.SetNativeHeight(this.dataDoc, 720); } @@ -45,11 +46,9 @@ export class RecordingBox extends ViewBoxBaseComponent() { // console.log(this.videoDuration) this.dataDoc[this.fieldKey + "-duration"] = this.videoDuration; - // this.layoutDoc.layout = VideoBox.LayoutString(this.fieldKey); this.dataDoc.layout = VideoBox.LayoutString(this.fieldKey); - // this.dataDoc.nativeWidth = this.dataDoc.nativeHeight = undefined; - // this.layoutDoc._fitWidth = undefined; 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()); } |
