I've a React JS App that uses the Chime SDK. I've literally followed the explanation here and i can successfully hold a meeting with two attendees. My issue is the behaviour when one of the participants leaves the meeting.
My references are:
When i run meetingSession.audioVideo.stop()
the attendee appears to leave the meeting (their audio and video stops) - which makes sense. My issues are:
meetingSession
object to null
but it didn't workmeetingSession.audioVideo.start()
the attendee rejoins the meeting but with a new Tile ID. Why isn't the same Tile ID used if the Attendee is the same?Overall it seems my issues all relate to being unclear how to leave a meeting and a) be removed from the meeting roster and b) release objects locally in the browser.
Thanks in advance
I found the answer. Key context is:
In my previous post i was expecting both icons to disappear after leaving a session, however, the camera icon always remains because the permission remains.
There was one other bit of information missing. The docs state you should run meetingSession.audioVideo.stop()
but this is incomplete. The FAQs also state that you should run:
meetingSession.audioVideo.chooseVideoInputDevice(null);
meetingSession.audioVideo.stopLocalVideoTile();
meetingSession.audioVideo.stopVideoPreviewForVideoInput(previewVideoElement);
BEFORE running meetingSession.audioVideo.stop()
. Doing this fixed the issue and the icon disappeared.
Point 2 above regarding the Tile ID is still unclear but this is likely a separate issue.