Skip to content

Commit 4b75b33

Browse files
committed
videoroom: add "threads" parameter to create API
1 parent 4792d5b commit 4b75b33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/videoroom-plugin.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1257,11 +1257,12 @@ class VideoRoomHandle extends Handle {
12571257
* @param {boolean} [params.videoorient] - Whether the video-orientation RTP extension must be negotiated
12581258
* @param {string} [params.h264_profile] - H264 specific profile to prefer
12591259
* @param {string} [params.vp9_profile] - VP9 specific profile to prefer
1260+
* @param {number} [params.threads] - Number of threads to assist with the relaying of publishers in the room
12601261
* @returns {Promise<module:videoroom-plugin~VIDEOROOM_EVENT_CREATED>}
12611262
*/
12621263
async create({ room, description, max_publishers, permanent, is_private, secret, pin, admin_key, bitrate,
12631264
bitrate_cap, fir_freq, audiocodec, videocodec, talking_events, talking_level_threshold, talking_packets_threshold,
1264-
require_pvtid, require_e2ee, record, rec_dir, videoorient, h264_profile, vp9_profile }) {
1265+
require_pvtid, require_e2ee, record, rec_dir, videoorient, h264_profile, vp9_profile, threads }) {
12651266
const body = {
12661267
request: REQUEST_CREATE,
12671268
};
@@ -1288,6 +1289,7 @@ class VideoRoomHandle extends Handle {
12881289
if (typeof videoorient === 'boolean') body.videoorient_ext = videoorient;
12891290
if (typeof h264_profile === 'string') body.h264_profile = h264_profile;
12901291
if (typeof vp9_profile === 'string') body.vp9_profile = vp9_profile;
1292+
if (typeof threads === 'number') body.threads = threads;
12911293

12921294
const response = await this.message(body);
12931295
const { event, data: evtdata } = response._janode || {};

0 commit comments

Comments
 (0)