aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/RecordingBox/RecordingBox.tsx
diff options
context:
space:
mode:
authorMichael <michael.foiani@gmail.com>2022-06-08 18:24:53 -0400
committerMichael <michael.foiani@gmail.com>2022-06-08 18:24:53 -0400
commit48c60bd982734676f972514f7074be6121e7c5df (patch)
tree9ad01ac2a78bc61f53cc1b377128bf3c7b103b36 /src/client/views/nodes/RecordingBox/RecordingBox.tsx
parentbc6aa7b8e7c9e43901f500d58acb0ebb6450b0a5 (diff)
big commit. FINALLY got the combining segments to work using ffmpeg using a different workflow. small ui changes as well.
Diffstat (limited to 'src/client/views/nodes/RecordingBox/RecordingBox.tsx')
-rw-r--r--src/client/views/nodes/RecordingBox/RecordingBox.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/nodes/RecordingBox/RecordingBox.tsx b/src/client/views/nodes/RecordingBox/RecordingBox.tsx
index 68f3b3ad4..bd4af0a75 100644
--- a/src/client/views/nodes/RecordingBox/RecordingBox.tsx
+++ b/src/client/views/nodes/RecordingBox/RecordingBox.tsx
@@ -30,7 +30,7 @@ export class RecordingBox extends ViewBoxBaseComponent() {
Doc.SetNativeHeight(this.dataDoc, 720);
}
- @observable result: Upload.FileInformation | undefined = undefined
+ @observable result: Upload.AccessPathInfo | undefined = undefined
@observable videoDuration: number | undefined = undefined
@action
@@ -39,13 +39,14 @@ export class RecordingBox extends ViewBoxBaseComponent() {
}
@action
- setResult = (info: Upload.FileInformation, trackScreen: boolean) => {
+ setResult = (info: Upload.AccessPathInfo, trackScreen: boolean) => {
+ if (info == null) return
this.result = info
this.dataDoc.type = DocumentType.VID;
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.props.fieldKey] = new VideoField(this.result.accessPaths.client);
this.dataDoc[this.fieldKey + "-recorded"] = true;
// stringify the presenation and store it
if (trackScreen) {