Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes time console.log text

hristoterezovddf39a20b8d9
diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js
index a809aaebbe..481e680d9b 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);
};