1
            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 创建了会议,请参阅以下示例

例子

输出: 在此处输入图像描述

4

1 回答 1

1

从您的代码中删除以下行:

chime.endpoint = new AWS.Endpoint('https://service.chime.aws.amazon.com');
于 2021-07-12T10:16:24.707 回答