diff --git a/openvidu-node-client/src/Recording.ts b/openvidu-node-client/src/Recording.ts index f5cc73ec82..097aa7b6d2 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.CUSTOM.toString()) { + if (this.properties.recordingLayout.toString() === RecordingLayout[RecordingLayout.CUSTOM]) { 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 1d375e582f..e250366d90 100644 --- a/openvidu-node-client/src/RecordingLayout.ts +++ b/openvidu-node-client/src/RecordingLayout.ts @@ -18,7 +18,7 @@ /** * See {@link RecordingProperties.recordingLayout} */ -export const enum RecordingLayout { +export enum RecordingLayout { /** * All the videos are evenly distributed, taking up as much space as possible */