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:
- This link states "To stop the meeting session, call meetingSession.audioVideo.stop()."
- This link states "You start tearing down a session by calling stop on the AudioVideoFacade .... this.audioVideo.stop();"
When i run meetingSession.audioVideo.stop()
the attendee appears to leave the meeting (their audio and video stops) - which makes sense. My issues are:
- Locally, the attendee's audio and video are still showing as active in the browser. How do i release them? I've tried setting the
meetingSession
object tonull
but it didn't work - If i then run
meetingSession.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