@@ -1257,11 +1257,12 @@ class VideoRoomHandle extends Handle {
1257
1257
* @param {boolean } [params.videoorient] - Whether the video-orientation RTP extension must be negotiated
1258
1258
* @param {string } [params.h264_profile] - H264 specific profile to prefer
1259
1259
* @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
1260
1261
* @returns {Promise<module:videoroom-plugin~VIDEOROOM_EVENT_CREATED> }
1261
1262
*/
1262
1263
async create ( { room, description, max_publishers, permanent, is_private, secret, pin, admin_key, bitrate,
1263
1264
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 } ) {
1265
1266
const body = {
1266
1267
request : REQUEST_CREATE ,
1267
1268
} ;
@@ -1288,6 +1289,7 @@ class VideoRoomHandle extends Handle {
1288
1289
if ( typeof videoorient === 'boolean' ) body . videoorient_ext = videoorient ;
1289
1290
if ( typeof h264_profile === 'string' ) body . h264_profile = h264_profile ;
1290
1291
if ( typeof vp9_profile === 'string' ) body . vp9_profile = vp9_profile ;
1292
+ if ( typeof threads === 'number' ) body . threads = threads ;
1291
1293
1292
1294
const response = await this . message ( body ) ;
1293
1295
const { event, data : evtdata } = response . _janode || { } ;
0 commit comments