From ddf39a20b8d92a657c5c962265f3fcf20e82cd40 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Sun, 10 Apr 2016 12:25:37 -0500 Subject: [PATCH] Fixes time console.log text --- modules/UI/videolayout/SmallVideo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js index a809aaebb..481e680d9 100644 --- a/modules/UI/videolayout/SmallVideo.js +++ b/modules/UI/videolayout/SmallVideo.js @@ -159,9 +159,10 @@ SmallVideo.createStreamElement = function (stream) { element.id = SmallVideo.getStreamElementID(stream); element.onplay = function () { - var now = APP.performanceTimes["video.render"] + var type = (isVideo ? 'video' : 'audio'); + var now = APP.performanceTimes[type + ".render"] = window.performance.now(); - console.log("(TIME) Render " + (isVideo ? 'video' : 'audio') + ":\t", + console.log("(TIME) Render " + type + ":\t", now); };