mirror of https://github.com/OpenVidu/openvidu.git
openvidu-node-client: RecordingProperties shmSize and mediaNode
parent
ceed7dd77b
commit
49d15ffdd5
|
@ -147,14 +147,16 @@ export class OpenVidu {
|
|||
data = {
|
||||
session: sessionId,
|
||||
name: !!properties.name ? properties.name : '',
|
||||
outputMode: !!properties.outputMode ? properties.outputMode : Recording.OutputMode.COMPOSED,
|
||||
hasAudio: !!(properties.hasAudio),
|
||||
hasVideo: !!(properties.hasVideo)
|
||||
outputMode: properties.outputMode,
|
||||
hasAudio: properties.hasAudio != null ? properties.hasAudio : null,
|
||||
hasVideo: properties.hasVideo != null ? properties.hasVideo : null,
|
||||
shmSize: properties.shmSize,
|
||||
mediaNode: properties.mediaNode
|
||||
};
|
||||
if (data.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED]
|
||||
|| data.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED_QUICK_START]) {
|
||||
data.resolution = !!properties.resolution ? properties.resolution : '1920x1080';
|
||||
data.recordingLayout = !!properties.recordingLayout ? properties.recordingLayout : RecordingLayout.BEST_FIT;
|
||||
if ((data.hasVideo == null || data.hasVideo) && (data.outputMode == null || data.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED]
|
||||
|| data.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED_QUICK_START])) {
|
||||
data.resolution = properties.resolution;
|
||||
data.recordingLayout = !!properties.recordingLayout ? properties.recordingLayout : '';
|
||||
if (data.recordingLayout.toString() === RecordingLayout[RecordingLayout.CUSTOM]) {
|
||||
data.customLayout = !!properties.customLayout ? properties.customLayout : '';
|
||||
}
|
||||
|
@ -163,15 +165,13 @@ export class OpenVidu {
|
|||
} else {
|
||||
data = JSON.stringify({
|
||||
session: sessionId,
|
||||
name: param2,
|
||||
outputMode: Recording.OutputMode.COMPOSED
|
||||
name: param2
|
||||
});
|
||||
}
|
||||
} else {
|
||||
data = JSON.stringify({
|
||||
session: sessionId,
|
||||
name: '',
|
||||
outputMode: Recording.OutputMode.COMPOSED
|
||||
name: ''
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -68,6 +68,12 @@ export interface RecordingProperties {
|
|||
*/
|
||||
hasVideo?: boolean;
|
||||
|
||||
/**
|
||||
* If COMPOSED recording, the amount of shared memory reserved for the recording process in bytes.
|
||||
* Minimum 134217728 (128MB). Property ignored if INDIVIDUAL recording. Default to 536870912 (512 MB)
|
||||
*/
|
||||
shmSize?: number;
|
||||
|
||||
/**
|
||||
* **This feature is part of OpenVidu Pro tier** <a href="https://docs.openvidu.io/en/stable/openvidu-pro/" target="_blank" style="display: inline-block; background-color: rgb(0, 136, 170); color: white; font-weight: bold; padding: 0px 5px; margin-right: 5px; border-radius: 3px; font-size: 13px; line-height:21px; font-family: Montserrat, sans-serif">PRO</a>
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue