added method to extract logs
This commit is contained in:
parent
0adc0e4333
commit
8a1a0a5b0e
|
@ -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
|
||||
|
|
1336
lib-jitsi-meet.js
1336
lib-jitsi-meet.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue