Skip to content

Commit 772ab8d

Browse files
authored
feat(es) migrate statistics/statistics to ES6 Class
1 parent 6abd742 commit 772ab8d

File tree

2 files changed

+384
-306
lines changed

2 files changed

+384
-306
lines changed

JitsiConference.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -901,16 +901,6 @@ JitsiConference.prototype.getLocalVideoTracks = function() {
901901
return this.rtc ? this.rtc.getLocalVideoTracks() : null;
902902
};
903903

904-
/**
905-
* Obtains the performance statistics.
906-
* @returns {Object|null}
907-
*/
908-
JitsiConference.prototype.getPerformanceStats = function() {
909-
return {
910-
longTasksStats: this.statistics.getLongTasksStats()
911-
};
912-
};
913-
914904
/**
915905
* Attaches a handler for events(For example - "participant joined".) in the
916906
* conference. All possible event are defined in JitsiConferenceEvents.
@@ -3907,8 +3897,7 @@ JitsiConference.prototype._sendConferenceLeftAnalyticsEvent = function() {
39073897
meetingId,
39083898
participantId: `${meetingId}.${this._statsCurrentId}`,
39093899
stats: {
3910-
duration: Math.floor((Date.now() - this._conferenceJoinAnalyticsEventSent) / 1000),
3911-
perf: this.getPerformanceStats()
3900+
duration: Math.floor((Date.now() - this._conferenceJoinAnalyticsEventSent) / 1000)
39123901
}
39133902
}));
39143903
};

0 commit comments

Comments
 (0)