Merge pull request #754 from bgrozev/log-json

Formats the resolution change log as JSON.
This commit is contained in:
Дамян Минков 2016-08-03 12:50:22 -05:00 committed by GitHub
commit dd7502f8de
1 changed files with 8 additions and 3 deletions

View File

@ -1262,9 +1262,14 @@ export default {
APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
(id, oldResolution, newResolution, delay) => {
room.sendApplicationLog("Resolution change id=" + id
+ " old=" + oldResolution + " new=" + newResolution
+ " delay=" + delay);
var logObject = {
id: "resolution_change",
participant: id,
oldValue: oldResolution,
newValue: newResolution,
delay: delay
};
room.sendApplicationLog(JSON.stringify(logObject));
});
// Starts or stops the recording for the conference.