Fixes stats, using wrong object members in latest update.
This commit is contained in:
parent
65239f9ffe
commit
d01a65f73d
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue