瀏覽代碼

Merge pull request #785 from bgrozev/stream-switch-logs

Logs stream switch delays using analytics instead of callstats.
j8
Дамян Минков 9 年之前
父節點
當前提交
45830c1086
共有 1 個檔案被更改,包括 7 行新增8 行删除
  1. 7
    8
      conference.js

+ 7
- 8
conference.js 查看文件

1305
 
1305
 
1306
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
1306
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
1307
             (id, oldResolution, newResolution, delay) => {
1307
             (id, oldResolution, newResolution, delay) => {
1308
-            var logObject = {
1309
-                id: "resolution_change",
1310
-                participant: id,
1311
-                oldValue: oldResolution,
1312
-                newValue: newResolution,
1313
-                delay: delay
1314
-                };
1315
-            room.sendApplicationLog(JSON.stringify(logObject));
1308
+                // We only care about the delay between simulcast streams.
1309
+                // Longer delays will be caused by something else and will just
1310
+                // poison the data.
1311
+                if (delay < 2000) {
1312
+                    JitsiMeetJS.analytics
1313
+                            .sendEvent('stream.switch.delay', delay);
1314
+                }
1316
         });
1315
         });
1317
 
1316
 
1318
         // Starts or stops the recording for the conference.
1317
         // Starts or stops the recording for the conference.

Loading…
取消
儲存