|
|
@@ -164,10 +164,18 @@ var LibJitsiMeet = {
|
|
164
|
164
|
}, USER_MEDIA_PERMISSION_PROMPT_TIMEOUT);
|
|
165
|
165
|
}
|
|
166
|
166
|
|
|
|
167
|
+ if(!window.connectionTimes)
|
|
|
168
|
+ window.connectionTimes = {};
|
|
|
169
|
+ window.connectionTimes["obtainPermissions.start"] =
|
|
|
170
|
+ window.performance.now();
|
|
|
171
|
+
|
|
167
|
172
|
return RTC.obtainAudioAndVideoPermissions(options || {})
|
|
168
|
173
|
.then(function(tracks) {
|
|
169
|
174
|
promiseFulfilled = true;
|
|
170
|
175
|
|
|
|
176
|
+ window.connectionTimes["obtainPermissions.end"] =
|
|
|
177
|
+ window.performance.now();
|
|
|
178
|
+
|
|
171
|
179
|
if(!RTC.options.disableAudioLevels)
|
|
172
|
180
|
for(var i = 0; i < tracks.length; i++) {
|
|
173
|
181
|
var track = tracks[i];
|
|
|
@@ -216,6 +224,9 @@ var LibJitsiMeet = {
|
|
216
|
224
|
Statistics.sendGetUserMediaFailed(error);
|
|
217
|
225
|
}
|
|
218
|
226
|
|
|
|
227
|
+ window.connectionTimes["obtainPermissions.end"] =
|
|
|
228
|
+ window.performance.now();
|
|
|
229
|
+
|
|
219
|
230
|
return Promise.reject(error);
|
|
220
|
231
|
}.bind(this));
|
|
221
|
232
|
},
|