|
@@ -178,7 +178,7 @@ function onUserLeft(id) {
|
178
|
178
|
* That function is called when connection is established successfully
|
179
|
179
|
*/
|
180
|
180
|
function onConnectionSuccess() {
|
181
|
|
- room = connection.initJitsiConference(roomName, config);
|
|
181
|
+ room = connection.initJitsiConference(roomName.toLowerCase(), config);
|
182
|
182
|
room.on(JitsiMeetJS.events.conference.TRACK_ADDED, onRemoteTrack);
|
183
|
183
|
room.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED, onConferenceJoined);
|
184
|
184
|
room.on(JitsiMeetJS.events.conference.USER_JOINED, id => {
|
|
@@ -232,6 +232,8 @@ JitsiMeetJS.setLogLevel(JitsiMeetJS.logLevels.ERROR);
|
232
|
232
|
|
233
|
233
|
JitsiMeetJS.init(config);
|
234
|
234
|
|
|
235
|
+config.serviceUrl = config.bosh = `${config.websocket || config.bosh}?room=${roomName.toLowerCase()}`;
|
|
236
|
+
|
235
|
237
|
connection = new JitsiMeetJS.JitsiConnection(null, null, config);
|
236
|
238
|
connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED, onConnectionSuccess);
|
237
|
239
|
connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED, onConnectionFailed);
|