限制最大参与者的 Zoom 会议
limit Zoom meetings with max participants
有没有办法为特定的最大参与者人数创建缩放会议?
例如,
如果玩家预订最多 6 名玩家的“小型”套餐,是否可以创建最多 7 名玩家(1 名主机 + 6 名玩家)的缩放 link?
如果玩家预订最多 8 位玩家的“中型”套餐,是否可以创建最多 9 位玩家(1 位主机 + 8 位玩家)的缩放 link?
如果玩家预订最多 10 名玩家的“大型”套餐,是否可以为最多 11 名玩家(1 名主机 + 10 名玩家)创建缩放 link?
如果玩家预订了“XL”套餐,该套餐适用于自定义数量的玩家,是否可以为特定数量的玩家 + 1 位主机创建缩放 link?
那我怎么限制加入zoom meeting的参会人数
是否可以使用缩放来完成API
let createZoomMeeting = (req, res, next, meetingoption) => {
return new Promise(async resolve => {
if (meetingoption) {
const jwt = require('jsonwebtoken');
const payload = {
iss: ZOOM_API_KEY,
exp: ((new Date()).getTime() + 5000)
};
const token = jwt.sign(payload, ZOOM_API_SECRET);
let optionsForHost = {
conditions: {
user_role_id: FRONT_USER_ROLE_ID,
active: ACTIVE,
is_deleted: NOT_DELETED,
is_verified: VERIFIED,
},
fields: {
_id: 1, full_name: 1, email: 1,
}
};
/**Condition for player Slug*/
optionsForHost.conditions._id = meetingoption.host_id;
/** Get host details **/
let hostResponse = await getUserData(req, res, next, optionsForHost);
/** get global zoom url and set email for particular host **/
let HOST_ZOOM_URL = MEETING_ZOOM_URL;
const host_email = hostResponse.result.email ? hostResponse.result.email : "hello@gamenitesocial.com";
HOST_ZOOM_URL = HOST_ZOOM_URL.replace("me", host_email);
if (hostResponse.status != STATUS_SUCCESS) return next(hostResponse.message);
if (!hostResponse.result) return resolve({ status: STATUS_ERROR, message: res.__("admin.system.invalid_access") });
const options = {
method: 'POST',
url: HOST_ZOOM_URL,
headers: { 'content-type': 'application/json', authorization: `Bearer ${token}` },
body: {
topic: meetingoption.game_type + ' (' + meetingoption.game_name + '-' + meetingoption.game_category_name + ')',
type: 2,
start_time: meetingoption.game_date + 'T' + meetingoption.start_time + ":00:00",
timezone: 'America/New_York',
agenda: meetingoption.game_type + ' (' + meetingoption.game_name + '-' + meetingoption.game_category_name + ')',
settings: {
host_video: true,
participant_video: true,
join_before_host: false,
mute_upon_entry: true,
use_pmi: false,
approval_type: 2,
alternative_hosts: hostResponse.result.email
}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
return resolve({ status: STATUS_SUCCESS, result: body });
});
} else {
return resolve({ status: STATUS_ERROR, result: {} });
}
});
};// End createZoomMeeting().
您不能通过 zoom/SDK zoom SDK 在其文档中不提供此类参数
有没有办法为特定的最大参与者人数创建缩放会议?
例如,
如果玩家预订最多 6 名玩家的“小型”套餐,是否可以创建最多 7 名玩家(1 名主机 + 6 名玩家)的缩放 link?
如果玩家预订最多 8 位玩家的“中型”套餐,是否可以创建最多 9 位玩家(1 位主机 + 8 位玩家)的缩放 link?
如果玩家预订最多 10 名玩家的“大型”套餐,是否可以为最多 11 名玩家(1 名主机 + 10 名玩家)创建缩放 link?
如果玩家预订了“XL”套餐,该套餐适用于自定义数量的玩家,是否可以为特定数量的玩家 + 1 位主机创建缩放 link?
那我怎么限制加入zoom meeting的参会人数
是否可以使用缩放来完成API
let createZoomMeeting = (req, res, next, meetingoption) => {
return new Promise(async resolve => {
if (meetingoption) {
const jwt = require('jsonwebtoken');
const payload = {
iss: ZOOM_API_KEY,
exp: ((new Date()).getTime() + 5000)
};
const token = jwt.sign(payload, ZOOM_API_SECRET);
let optionsForHost = {
conditions: {
user_role_id: FRONT_USER_ROLE_ID,
active: ACTIVE,
is_deleted: NOT_DELETED,
is_verified: VERIFIED,
},
fields: {
_id: 1, full_name: 1, email: 1,
}
};
/**Condition for player Slug*/
optionsForHost.conditions._id = meetingoption.host_id;
/** Get host details **/
let hostResponse = await getUserData(req, res, next, optionsForHost);
/** get global zoom url and set email for particular host **/
let HOST_ZOOM_URL = MEETING_ZOOM_URL;
const host_email = hostResponse.result.email ? hostResponse.result.email : "hello@gamenitesocial.com";
HOST_ZOOM_URL = HOST_ZOOM_URL.replace("me", host_email);
if (hostResponse.status != STATUS_SUCCESS) return next(hostResponse.message);
if (!hostResponse.result) return resolve({ status: STATUS_ERROR, message: res.__("admin.system.invalid_access") });
const options = {
method: 'POST',
url: HOST_ZOOM_URL,
headers: { 'content-type': 'application/json', authorization: `Bearer ${token}` },
body: {
topic: meetingoption.game_type + ' (' + meetingoption.game_name + '-' + meetingoption.game_category_name + ')',
type: 2,
start_time: meetingoption.game_date + 'T' + meetingoption.start_time + ":00:00",
timezone: 'America/New_York',
agenda: meetingoption.game_type + ' (' + meetingoption.game_name + '-' + meetingoption.game_category_name + ')',
settings: {
host_video: true,
participant_video: true,
join_before_host: false,
mute_upon_entry: true,
use_pmi: false,
approval_type: 2,
alternative_hosts: hostResponse.result.email
}
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
return resolve({ status: STATUS_SUCCESS, result: body });
});
} else {
return resolve({ status: STATUS_ERROR, result: {} });
}
});
};// End createZoomMeeting().
您不能通过 zoom/SDK zoom SDK 在其文档中不提供此类参数