Explorar el Código

Merge pull request #600 from jitsi/performanceTime_format

Fixes time console.log text
j8
damencho hace 9 años
padre
commit
702eb8cbbe
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      modules/UI/videolayout/SmallVideo.js

+ 3
- 2
modules/UI/videolayout/SmallVideo.js Ver fichero

@@ -159,9 +159,10 @@ SmallVideo.createStreamElement = function (stream) {
159 159
     element.id = SmallVideo.getStreamElementID(stream);
160 160
 
161 161
     element.onplay = function () {
162
-        var now = APP.performanceTimes["video.render"]
162
+        var type = (isVideo ? 'video' : 'audio');
163
+        var now = APP.performanceTimes[type + ".render"]
163 164
             = window.performance.now();
164
-        console.log("(TIME) Render " + (isVideo ? 'video' : 'audio') + ":\t",
165
+        console.log("(TIME) Render " + type + ":\t",
165 166
                     now);
166 167
     };
167 168
 

Loading…
Cancelar
Guardar