Skip to content

Commit

Permalink
videoroom: add vp9 profile to create
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Mar 11, 2024
1 parent 214f732 commit 8131fee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/videoroom-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,11 +1115,12 @@ class VideoRoomHandle extends Handle {
* @param {string} [params.rec_dir] - Folder where recordings should be stored
* @param {boolean} [params.videoorient] - Whether the video-orientation RTP extension must be negotiated
* @param {string} [params.h264_profile] - H264 specific profile to prefer
* @param {string} [params.vp9_profile] - VP9 specific profile to prefer
* @returns {Promise<module:videoroom-plugin~VIDEOROOM_EVENT_CREATED>}
*/
async create({ room, description, max_publishers, permanent, is_private, secret, pin, admin_key, bitrate,
bitrate_cap, fir_freq, audiocodec, videocodec, talking_events, talking_level_threshold, talking_packets_threshold,
require_pvtid, require_e2ee, record, rec_dir, videoorient, h264_profile }) {
require_pvtid, require_e2ee, record, rec_dir, videoorient, h264_profile, vp9_profile }) {
const body = {
request: REQUEST_CREATE,
};
Expand All @@ -1145,6 +1146,7 @@ class VideoRoomHandle extends Handle {
if (typeof rec_dir === 'string') body.rec_dir = rec_dir;
if (typeof videoorient === 'boolean') body.videoorient_ext = videoorient;
if (typeof h264_profile === 'string') body.h264_profile = h264_profile;
if (typeof vp9_profile === 'string') body.vp9_profile = vp9_profile;

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

0 comments on commit 8131fee

Please sign in to comment.