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 @@