Adds analytics event for rendering audio and video.

This commit is contained in:
damencho 2016-08-02 13:19:03 -05:00
parent db91040443
commit 562c2e38db
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import Avatar from "../avatar/Avatar";
import UIUtil from "../util/UIUtil";
import UIEvents from "../../../service/UI/UIEvents";
import AnalyticsAdapter from '../../statistics/AnalyticsAdapter';
const RTCUIHelper = JitsiMeetJS.util.RTCUIHelper;
@ -165,6 +166,7 @@ SmallVideo.createStreamElement = function (stream) {
= window.performance.now();
console.log("(TIME) Render " + type + ":\t",
now);
AnalyticsAdapter.sendEvent('render.' + type, now);
};
return element;
};