|
|
@@ -167,6 +167,17 @@ SmallVideo.createStreamElement = function (stream) {
|
|
167
|
167
|
console.log("(TIME) Render " + type + ":\t",
|
|
168
|
168
|
now);
|
|
169
|
169
|
AnalyticsAdapter.sendEvent('render.' + type, now);
|
|
|
170
|
+
|
|
|
171
|
+ // Time to first media, a number that can be used for comparision of
|
|
|
172
|
+ // time fot rendering media. It can be used for the first and
|
|
|
173
|
+ // the rest participants. It subtracts the period of waiting for the
|
|
|
174
|
+ // second participant to join (time between join and first
|
|
|
175
|
+ // session initiate).
|
|
|
176
|
+ var ttfm = now - APP.connectionTimes["document.ready"]
|
|
|
177
|
+ - (APP.conference.getConnectionTimes()["session.initiate"]
|
|
|
178
|
+ - APP.conference.getConnectionTimes()["muc.joined"]);
|
|
|
179
|
+ console.log("(TIME) TTFM " + type + ":\t", ttfm);
|
|
|
180
|
+ AnalyticsAdapter.sendEvent('ttfm.' + type, ttfm);
|
|
170
|
181
|
};
|
|
171
|
182
|
return element;
|
|
172
|
183
|
};
|