Revert "openvidu-node-client: Fix possible enum errors with typescript transpilation"

This reverts commit c1688c0d2a.
pull/744/merge
cruizba 2024-05-22 13:23:48 +02:00
parent c1688c0d2a
commit 46ba88cf9a
2 changed files with 2 additions and 2 deletions

View File

@ -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'] : '';
}
}

View File

@ -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
*/