|
|
@@ -42,7 +42,7 @@ function JitsiConference(options) {
|
|
42
|
42
|
this.statistics = new Statistics(this.xmpp, {
|
|
43
|
43
|
callStatsID: this.options.config.callStatsID,
|
|
44
|
44
|
callStatsSecret: this.options.config.callStatsSecret,
|
|
45
|
|
- disableThirdPartyRequests: this.options.config.disableThirdPartyRequests,
|
|
|
45
|
+ disableThirdPartyRequests: this.options.config.disableThirdPartyRequests
|
|
46
|
46
|
});
|
|
47
|
47
|
setupListeners(this);
|
|
48
|
48
|
JitsiMeetJS._gumFailedHandler.push(function(error) {
|
|
|
@@ -1051,12 +1051,13 @@ function setupListeners(conference) {
|
|
1051
|
1051
|
|
|
1052
|
1052
|
var id2resolution = {};
|
|
1053
|
1053
|
|
|
1054
|
|
- // preprocess resolutions: group by user id, skip incorrect resolutions etc.
|
|
|
1054
|
+ // preprocess resolutions: group by user id, skip incorrect
|
|
|
1055
|
+ // resolutions etc.
|
|
1055
|
1056
|
Object.keys(ssrc2resolution).forEach(function (ssrc) {
|
|
1056
|
1057
|
var resolution = ssrc2resolution[ssrc];
|
|
1057
|
1058
|
|
|
1058
|
1059
|
if (!resolution.width || !resolution.height ||
|
|
1059
|
|
- resolution.width == -1 || resolution.height == -1) { // it also may be "-1"
|
|
|
1060
|
+ resolution.width == -1 || resolution.height == -1) {
|
|
1060
|
1061
|
return;
|
|
1061
|
1062
|
}
|
|
1062
|
1063
|
|
|
|
@@ -1085,7 +1086,8 @@ function setupListeners(conference) {
|
|
1085
|
1086
|
|
|
1086
|
1087
|
stats.resolution = id2resolution;
|
|
1087
|
1088
|
|
|
1088
|
|
- conference.eventEmitter.emit(JitsiConferenceEvents.CONNECTION_STATS, stats);
|
|
|
1089
|
+ conference.eventEmitter.emit(
|
|
|
1090
|
+ JitsiConferenceEvents.CONNECTION_STATS, stats);
|
|
1089
|
1091
|
});
|
|
1090
|
1092
|
conference.xmpp.addListener(XMPPEvents.DISPOSE_CONFERENCE,
|
|
1091
|
1093
|
function () {
|