added method to extract logs

This commit is contained in:
isymchych 2016-01-14 17:34:34 +02:00
parent 0adc0e4333
commit 8a1a0a5b0e
3 changed files with 877 additions and 505 deletions

View File

@ -696,6 +696,27 @@ JitsiConference.prototype.isStartVideoMuted = function () {
return this.startVideoMuted;
};
/**
* Get object with internal logs.
*/
JitsiConference.prototype.getLogs = function () {
var data = this.xmpp.getJingleLog();
var metadata = {};
metadata.time = new Date();
metadata.url = window.location.href;
metadata.ua = navigator.userAgent;
var log = this.xmpp.getXmppLog();
if (log) {
metadata.xmpp = log;
}
data.metadata = metadata;
return data;
};
/**
* Setups the listeners needed for the conference.
* @param conference the conference

File diff suppressed because it is too large Load Diff

25
lib-jitsi-meet.min.js vendored

File diff suppressed because one or more lines are too long