let meetingId = null;
let meeting = null;
let clientId = 2017;
meetingId = uuid();
var region = await getNearestMediaRegion();
const chime = new AWS.Chime({ region: region });
chime.endpoint = new AWS.Endpoint('https://service.chime.aws.amazon.com');
meeting = await chime.createMeeting({
ClientRequestToken: meetingId,
MediaRegion: region,
ExternalMeetingId: meetingId,
}).promise();
const attendee = await chime.createAttendee({
MeetingId: meeting.Meeting.MeetingId,
ExternalUserId: `${uuid().substring(0, 8)}#${clientId}`,
})
.promise();
let res = { meeting, attendee };
我在无服务器中使用 Amazon chime SDK 创建了会议,请参阅以下示例