浏览代码

Fixes stats, using wrong object members in latest update.

j8
damencho 8 年前
父节点
当前提交
d01a65f73d
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7
    7
      modules/UI/videolayout/VideoLayout.js

+ 7
- 7
modules/UI/videolayout/VideoLayout.js 查看文件

@@ -857,22 +857,22 @@ var VideoLayout = {
857 857
      * @param object
858 858
      */
859 859
     updateLocalConnectionStats (percent, object) {
860
-        const { framerates, resolutions } = object;
860
+        const { framerate, resolution } = object;
861 861
 
862
-        object.resolution = resolutions[APP.conference.getMyUserId()];
863
-        object.framerate = framerates[APP.conference.getMyUserId()];
862
+        object.resolution = resolution[APP.conference.getMyUserId()];
863
+        object.framerate = framerate[APP.conference.getMyUserId()];
864 864
         localVideoThumbnail.updateStatsIndicator(percent, object);
865 865
 
866
-        Object.keys(resolutions).forEach(function (id) {
866
+        Object.keys(resolution).forEach(function (id) {
867 867
             if (APP.conference.isLocalId(id)) {
868 868
                 return;
869 869
             }
870 870
 
871
-            let resolution = resolutions[id];
871
+            let resolutionValue = resolution[id];
872 872
             let remoteVideo = remoteVideos[id];
873 873
 
874
-            if (resolution && remoteVideo) {
875
-                remoteVideo.updateResolution(resolution);
874
+            if (resolutionValue && remoteVideo) {
875
+                remoteVideo.updateResolution(resolutionValue);
876 876
             }
877 877
         });
878 878
     },

正在加载...
取消
保存