소스 검색

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.

Loading…
취소
저장