Skip to content

Commit

Permalink
Revert "openvidu-node-client: Fix possible enum errors with typescrip…
Browse files Browse the repository at this point in the history
…t transpilation"

This reverts commit c1688c0.
  • Loading branch information
cruizba committed May 22, 2024
1 parent c1688c0 commit 46ba88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openvidu-node-client/src/Recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'] : '';
}
}
Expand Down
2 changes: 1 addition & 1 deletion openvidu-node-client/src/RecordingLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 46ba88c

Please sign in to comment.