diff --git a/openvidu-node-client/src/Recording.ts b/openvidu-node-client/src/Recording.ts index 097aa7b6..f5cc73ec 100644 --- a/openvidu-node-client/src/Recording.ts +++ b/openvidu-node-client/src/Recording.ts @@ -94,7 +94,7 @@ export class Recording { json['frameRate'] != null ? Number(json['frameRate']) : Recording.DefaultRecordingPropertiesValues.frameRate; this.properties.shmSize = json['shmSize'] != null ? Number(json['shmSize']) : Recording.DefaultRecordingPropertiesValues.shmSize; - if (this.properties.recordingLayout.toString() === RecordingLayout[RecordingLayout.CUSTOM]) { + if (this.properties.recordingLayout.toString() === RecordingLayout.CUSTOM.toString()) { this.properties.customLayout = json['customLayout'] != null ? json['customLayout'] : ''; } } diff --git a/openvidu-node-client/src/RecordingLayout.ts b/openvidu-node-client/src/RecordingLayout.ts index e250366d..1d375e58 100644 --- a/openvidu-node-client/src/RecordingLayout.ts +++ b/openvidu-node-client/src/RecordingLayout.ts @@ -18,7 +18,7 @@ /** * See {@link RecordingProperties.recordingLayout} */ -export enum RecordingLayout { +export const enum RecordingLayout { /** * All the videos are evenly distributed, taking up as much space as possible */