|
@@ -160,25 +160,6 @@ SmallVideo.createStreamElement = function (stream) {
|
160
|
160
|
|
161
|
161
|
element.id = SmallVideo.getStreamElementID(stream);
|
162
|
162
|
|
163
|
|
- element.onplay = function () {
|
164
|
|
- var type = (isVideo ? 'video' : 'audio');
|
165
|
|
- var now = APP.connectionTimes[type + ".render"]
|
166
|
|
- = window.performance.now();
|
167
|
|
- console.log("(TIME) Render " + type + ":\t",
|
168
|
|
- now);
|
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
|
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);
|
181
|
|
- };
|
182
|
163
|
return element;
|
183
|
164
|
};
|
184
|
165
|
|