瀏覽代碼

In loadtest, make localAudio non-const. (#8829)

(Because we modify it.)
master
Jonathan Lennox 4 年之前
父節點
當前提交
81cf79e643
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      resources/load-test/load-test-participant.js

+ 4
- 1
resources/load-test/load-test-participant.js 查看文件

9
 const params = parseURLParams(window.location, false, 'hash');
9
 const params = parseURLParams(window.location, false, 'hash');
10
 const { isHuman = false } = params;
10
 const { isHuman = false } = params;
11
 const {
11
 const {
12
-    localAudio = config.startWithAudioMuted !== true,
13
     localVideo = config.startWithVideoMuted !== true,
12
     localVideo = config.startWithVideoMuted !== true,
14
     remoteVideo = isHuman,
13
     remoteVideo = isHuman,
15
     remoteAudio = isHuman,
14
     remoteAudio = isHuman,
19
     autoCreateLocalAudio = config.testing.noAutoLocalAudio !== true
18
     autoCreateLocalAudio = config.testing.noAutoLocalAudio !== true
20
 } = params;
19
 } = params;
21
 
20
 
21
+let {
22
+    localAudio = config.startWithAudioMuted !== true,
23
+} = params;
24
+
22
 const { room: roomName } = parseURIString(window.location.toString());
25
 const { room: roomName } = parseURIString(window.location.toString());
23
 
26
 
24
 let connection = null;
27
 let connection = null;

Loading…
取消
儲存