瀏覽代碼

Moves render and ttfm connection times to the library.

j8
damencho 9 年之前
父節點
當前提交
6651168dd3
共有 1 個文件被更改,包括 0 次插入19 次删除
  1. 0
    19
      modules/UI/videolayout/SmallVideo.js

+ 0
- 19
modules/UI/videolayout/SmallVideo.js 查看文件

@@ -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
 

Loading…
取消
儲存