openvidu-node-client: Fix possible enum errors with typescript transpilation
This commit is contained in:
parent
d1630e9b82
commit
c1688c0d2a
@ -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'] : '';
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user