mirror of https://github.com/OpenVidu/openvidu.git
openvidu-node-client: Fix possible enum errors with typescript transpilation
parent
d1630e9b82
commit
c1688c0d2a
|
@ -94,7 +94,7 @@ export class Recording {
|
||||||
json['frameRate'] != null ? Number(json['frameRate']) : Recording.DefaultRecordingPropertiesValues.frameRate;
|
json['frameRate'] != null ? Number(json['frameRate']) : Recording.DefaultRecordingPropertiesValues.frameRate;
|
||||||
this.properties.shmSize =
|
this.properties.shmSize =
|
||||||
json['shmSize'] != null ? Number(json['shmSize']) : Recording.DefaultRecordingPropertiesValues.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'] : '';
|
this.properties.customLayout = json['customLayout'] != null ? json['customLayout'] : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
/**
|
/**
|
||||||
* See {@link RecordingProperties.recordingLayout}
|
* See {@link RecordingProperties.recordingLayout}
|
||||||
*/
|
*/
|
||||||
export enum RecordingLayout {
|
export const enum RecordingLayout {
|
||||||
/**
|
/**
|
||||||
* All the videos are evenly distributed, taking up as much space as possible
|
* All the videos are evenly distributed, taking up as much space as possible
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue