|
|
@@ -156,26 +156,6 @@ Statistics.prototype.stopRemoteStats = function () {
|
|
156
|
156
|
}
|
|
157
|
157
|
};
|
|
158
|
158
|
|
|
159
|
|
-/**
|
|
160
|
|
- * Obtains audio level reported in the stats for specified peer.
|
|
161
|
|
- * @param peerJid full MUC jid of the user for whom we want to obtain last
|
|
162
|
|
- * audio level.
|
|
163
|
|
- * @param ssrc the SSRC of audio stream for which we want to obtain audio
|
|
164
|
|
- * level.
|
|
165
|
|
- * @returns {*} a float form 0 to 1 that represents current audio level or
|
|
166
|
|
- * <tt>null</tt> if for any reason the value is not available
|
|
167
|
|
- * at this time.
|
|
168
|
|
- */
|
|
169
|
|
-Statistics.prototype.getPeerSSRCAudioLevel = function (peerJid, ssrc) {
|
|
170
|
|
- if(!Statistics.audioLevelsEnabled)
|
|
171
|
|
- return;
|
|
172
|
|
- // FIXME: not used, unknown property jid2stats
|
|
173
|
|
- var peerStats = this.rtpStats.jid2stats[peerJid];
|
|
174
|
|
-
|
|
175
|
|
- return peerStats ? peerStats.ssrc2AudioLevel[ssrc] : null;
|
|
176
|
|
-};
|
|
177
|
|
-
|
|
178
|
|
-
|
|
179
|
159
|
//CALSTATS METHODS
|
|
180
|
160
|
|
|
181
|
161
|
/**
|