ソースを参照

fix(load-test): Uses websocket if available and adds room param to the connection url.

master
damencho 4年前
コミット
f4d0ec1bb4
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      resources/load-test/load-test-participant.js

+ 3
- 1
resources/load-test/load-test-participant.js ファイルの表示

@@ -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);

読み込み中…
キャンセル
保存