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

pull/744/merge
cruizba 2024-05-22 12:43:22 +02:00
parent d1630e9b82
commit c1688c0d2a
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[RecordingLayout.CUSTOM]) {
if (this.properties.recordingLayout.toString() === RecordingLayout.CUSTOM.toString()) {
this.properties.customLayout = json['customLayout'] != null ? json['customLayout'] : '';
}
}

View File

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