Browse Source

Fixes stats, using wrong object members in latest update.

j8
damencho 8 years ago
parent
commit
d01a65f73d
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      modules/UI/videolayout/VideoLayout.js

+ 7
- 7
modules/UI/videolayout/VideoLayout.js View File

857
      * @param object
857
      * @param object
858
      */
858
      */
859
     updateLocalConnectionStats (percent, object) {
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
         localVideoThumbnail.updateStatsIndicator(percent, object);
864
         localVideoThumbnail.updateStatsIndicator(percent, object);
865
 
865
 
866
-        Object.keys(resolutions).forEach(function (id) {
866
+        Object.keys(resolution).forEach(function (id) {
867
             if (APP.conference.isLocalId(id)) {
867
             if (APP.conference.isLocalId(id)) {
868
                 return;
868
                 return;
869
             }
869
             }
870
 
870
 
871
-            let resolution = resolutions[id];
871
+            let resolutionValue = resolution[id];
872
             let remoteVideo = remoteVideos[id];
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
     },

Loading…
Cancel
Save