room
in JWT payload should be same as roomName
in optionalProperties
.
xxxxxxxxxx
151<script>
2 // TODO: change test domain and consumerId to production
3 const domain = 'clanmeeting-domain';
4 const consumerId = 'clanmeeting-consumer-id';
5 const optionalProperties = {
6 roomName: 'uniqueRoomName',
7 displayName: 'Host',
8 // room in JWT payload should be same as roomName in optionalProperties
9 jwt: 'generated-token-here',
10 };
11 const meeting = new ClanMeeting(domain, consumerId, optionalProperties);
12
13 window.onload = function() { meeting.start(); };
14 window.onunload = function() { meeting.end(); };
15</script>