Fixes stats, using wrong object members in latest update.

This commit is contained in:
damencho 2017-03-15 15:33:13 -05:00 committed by hristoterezov
parent 65239f9ffe
commit d01a65f73d
1 changed files with 7 additions and 7 deletions

View File

@ -857,22 +857,22 @@ var VideoLayout = {
* @param object * @param object
*/ */
updateLocalConnectionStats (percent, object) { updateLocalConnectionStats (percent, object) {
const { framerates, resolutions } = object; const { framerate, resolution } = object;
object.resolution = resolutions[APP.conference.getMyUserId()]; object.resolution = resolution[APP.conference.getMyUserId()];
object.framerate = framerates[APP.conference.getMyUserId()]; object.framerate = framerate[APP.conference.getMyUserId()];
localVideoThumbnail.updateStatsIndicator(percent, object); localVideoThumbnail.updateStatsIndicator(percent, object);
Object.keys(resolutions).forEach(function (id) { Object.keys(resolution).forEach(function (id) {
if (APP.conference.isLocalId(id)) { if (APP.conference.isLocalId(id)) {
return; return;
} }
let resolution = resolutions[id]; let resolutionValue = resolution[id];
let remoteVideo = remoteVideos[id]; let remoteVideo = remoteVideos[id];
if (resolution && remoteVideo) { if (resolutionValue && remoteVideo) {
remoteVideo.updateResolution(resolution); remoteVideo.updateResolution(resolutionValue);
} }
}); });
}, },