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 = {
|
data = {
|
||||||
session: sessionId,
|
session: sessionId,
|
||||||
name: !!properties.name ? properties.name : '',
|
name: !!properties.name ? properties.name : '',
|
||||||
outputMode: !!properties.outputMode ? properties.outputMode : Recording.OutputMode.COMPOSED,
|
outputMode: properties.outputMode,
|
||||||
hasAudio: !!(properties.hasAudio),
|
hasAudio: properties.hasAudio != null ? properties.hasAudio : null,
|
||||||
hasVideo: !!(properties.hasVideo)
|
hasVideo: properties.hasVideo != null ? properties.hasVideo : null,
|
||||||
|
shmSize: properties.shmSize,
|
||||||
|
mediaNode: properties.mediaNode
|
||||||
};
|
};
|
||||||
if (data.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED]
|
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.outputMode.toString() === Recording.OutputMode[Recording.OutputMode.COMPOSED_QUICK_START])) {
|
||||||
data.resolution = !!properties.resolution ? properties.resolution : '1920x1080';
|
data.resolution = properties.resolution;
|
||||||
data.recordingLayout = !!properties.recordingLayout ? properties.recordingLayout : RecordingLayout.BEST_FIT;
|
data.recordingLayout = !!properties.recordingLayout ? properties.recordingLayout : '';
|
||||||
if (data.recordingLayout.toString() === RecordingLayout[RecordingLayout.CUSTOM]) {
|
if (data.recordingLayout.toString() === RecordingLayout[RecordingLayout.CUSTOM]) {
|
||||||
data.customLayout = !!properties.customLayout ? properties.customLayout : '';
|
data.customLayout = !!properties.customLayout ? properties.customLayout : '';
|
||||||
}
|
}
|
||||||
|
@ -163,15 +165,13 @@ export class OpenVidu {
|
||||||
} else {
|
} else {
|
||||||
data = JSON.stringify({
|
data = JSON.stringify({
|
||||||
session: sessionId,
|
session: sessionId,
|
||||||
name: param2,
|
name: param2
|
||||||
outputMode: Recording.OutputMode.COMPOSED
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data = JSON.stringify({
|
data = JSON.stringify({
|
||||||
session: sessionId,
|
session: sessionId,
|
||||||
name: '',
|
name: ''
|
||||||
outputMode: Recording.OutputMode.COMPOSED
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,12 @@ export interface RecordingProperties {
|
||||||
*/
|
*/
|
||||||
hasVideo?: boolean;
|
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>
|
* **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