I am building a video conferencing application using React Native and I have the basic Chime demo set up and working properly. However, I only want a particular set of users to be able to create meetings and the rest should only be able to join existing meetings. Instead of all users being able to create and start meetings, I want some users to be able to check and see if a meeting with a given meetingId is already in progress and then be able to join but if the meeting doesn’t already exist, do nothing or show a “The meeting hasn’t started yet.” message.
I see that there is a way to get meeting info using ChimeSDKMeetingsClient() along with GetMeetingCommand() but there isn’t a lot of information on what sort of config I need to pass into ChimeSDKMeetingsClient. I pass the region like this:
const client = new ChimeSDKMeetingsClient({ region: "MY_REGION" });
const input = {
MeetingId: MY_MEETING_ID,
};
const command = new GetMeetingCommand(input);
const response = await client.send(command);
and get the following error in my catch block:
"Credential is missing"
I currently am using Cognito for authentication and AWS Identity Pools for authorization. Do I need to be passing in accessToken or idToken as part of the config along with the region? I have been searching for hours and can’t find a lot of documentation on this.