Skip to content

Commit

Permalink
Do not pass the Capabilities for the global endpoint demo (#2735)
Browse files Browse the repository at this point in the history
  • Loading branch information
simmkyu authored Aug 19, 2023
1 parent bd9bd2d commit 2f5da80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion demos/browser/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ function serve(host = '127.0.0.1:8080') {
ExternalUserId: `${uuidv4().substring(0, 8)}#${requestUrl.query.name}`.substring(0, 64),
};

if (requestUrl.query.attendeeAudioCapability && !requestUrl.query.primaryExternalMeetingId) {
if (
useChimeSDKMeetings === 'true' &&
requestUrl.query.attendeeAudioCapability &&
!requestUrl.query.primaryExternalMeetingId
) {
createAttendeeRequest.Capabilities = {
Audio: requestUrl.query.attendeeAudioCapability,
Video: requestUrl.query.attendeeVideoCapability,
Expand Down
2 changes: 1 addition & 1 deletion demos/serverless/src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ exports.join = async (event, context) => {
ExternalUserId: `${uuidv4().substring(0, 8)}#${query.name}`.substring(0, 64),
};

if (query.attendeeAudioCapability && !query.primaryExternalMeetingId) {
if (useChimeSDKMeetings === 'true' && query.attendeeAudioCapability && !query.primaryExternalMeetingId) {
createAttendeeRequest['Capabilities'] = {
Audio : query.attendeeAudioCapability,
Video : query.attendeeVideoCapability,
Expand Down

0 comments on commit 2f5da80

Please sign in to comment.