소스 검색

Formats the resolution change log as JSON.

master
Boris Grozev 9 년 전
부모
커밋
ddb356482f
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8
    3
      conference.js

+ 8
- 3
conference.js 파일 보기

1255
 
1255
 
1256
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
1256
         APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
1257
             (id, oldResolution, newResolution, delay) => {
1257
             (id, oldResolution, newResolution, delay) => {
1258
-            room.sendApplicationLog("Resolution change id=" + id
1259
-                + " old=" + oldResolution + " new=" + newResolution
1260
-                + " delay=" + delay);
1258
+            var logObject = {
1259
+                id: "resolution_change",
1260
+                participant: id,
1261
+                oldValue: oldResolution,
1262
+                newValue: newResolution,
1263
+                delay: delay
1264
+                };
1265
+            room.sendApplicationLog(JSON.stringify(logObject));
1261
         });
1266
         });
1262
 
1267
 
1263
         // Starts or stops the recording for the conference.
1268
         // Starts or stops the recording for the conference.

Loading…
취소
저장