From 0d03a4fceb7a3aedf6258fd602e93455a44286d1 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 20 Jan 2016 15:41:37 -0600 Subject: [PATCH] callstats --- conference.js | 28 +++- index.html | 1 - modules/UI/Feedback.js | 11 +- modules/UI/UI.js | 4 +- modules/settings/Settings.js | 19 --- modules/statistics/CallStats.js | 218 ------------------------------- modules/statistics/statistics.js | 46 ------- 7 files changed, 29 insertions(+), 298 deletions(-) delete mode 100644 modules/statistics/CallStats.js diff --git a/conference.js b/conference.js index 39280a11a..cb88cdb6c 100644 --- a/conference.js +++ b/conference.js @@ -230,7 +230,26 @@ export default { get startVideoMuted () { return room && room.getStartMutedPolicy().video; }, - + /** + * Returns true if the callstats integration is enabled, otherwise returns + * false. + * + * @returns true if the callstats integration is enabled, otherwise returns + * false. + */ + isCallstatsEnabled () { + return room.isCallstatsEnabled(); + }, + /** + * Sends the given feedback through CallStats if enabled. + * + * @param overallFeedback an integer between 1 and 5 indicating the + * user feedback + * @param detailedFeedback detailed feedback from the user. Not yet used + */ + sendFeedback (overallFeedback, detailedFeedback) { + return room.sendFeedback (overallFeedback, detailedFeedback); + }, // used by torture currently isJoined () { return this._room @@ -292,10 +311,7 @@ export default { this._setupListeners(); }, _getConferenceOptions() { - let options = { - openSctp: config.openSctp, - disableAudioLevels: config.disableAudioLevels - }; + let options = config; if(config.enableRecording) { options.recordingType = (config.hosts && (typeof config.hosts.jirecon != "undefined"))? @@ -359,10 +375,8 @@ export default { if(track.isLocal()){ id = this.localId; if(track.getType() === "audio") { - APP.statistics.onAudioMute(mute); this.audioMuted = mute; } else { - APP.statistics.onVideoMute(mute); this.videoMuted = mute; } } else { diff --git a/index.html b/index.html index aadbf9de7..fda53fe7d 100644 --- a/index.html +++ b/index.html @@ -245,7 +245,6 @@