浏览代码

Merge pull request #754 from bgrozev/log-json

Formats the resolution change log as JSON.
j8
Дамян Минков 9 年前
父节点
当前提交
dd7502f8de
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8
    3
      conference.js

+ 8
- 3
conference.js 查看文件

@@ -1262,9 +1262,14 @@ export default {
1262 1262
 
1263 1263
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
1264 1264
             (id, oldResolution, newResolution, delay) => {
1265
-            room.sendApplicationLog("Resolution change id=" + id
1266
-                + " old=" + oldResolution + " new=" + newResolution
1267
-                + " delay=" + delay);
1265
+            var logObject = {
1266
+                id: "resolution_change",
1267
+                participant: id,
1268
+                oldValue: oldResolution,
1269
+                newValue: newResolution,
1270
+                delay: delay
1271
+                };
1272
+            room.sendApplicationLog(JSON.stringify(logObject));
1268 1273
         });
1269 1274
 
1270 1275
         // Starts or stops the recording for the conference.

正在加载...
取消
保存