From 46ba88cf9a8c03199cd7acd584f0cf3bd13cf540 Mon Sep 17 00:00:00 2001 From: cruizba Date: Wed, 22 May 2024 13:23:48 +0200 Subject: [PATCH] Revert "openvidu-node-client: Fix possible enum errors with typescript transpilation" This reverts commit c1688c0d2a4a1a97f49357d9be09ce83ab5f8cde. --- openvidu-node-client/src/Recording.ts | 2 +- openvidu-node-client/src/RecordingLayout.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */