|
|
@@ -250,20 +250,28 @@ var LibJitsiMeet = {
|
|
250
|
250
|
Statistics.sendLog(JSON.stringify(logObject));
|
|
251
|
251
|
Statistics.analytics.sendEvent(
|
|
252
|
252
|
"getUserMedia.userCancel.extensionInstall");
|
|
|
253
|
+ } else if (JitsiTrackErrors.NOT_FOUND === error.name) {
|
|
|
254
|
+ // logs not found devices with just application log to cs
|
|
|
255
|
+ var logObject = {
|
|
|
256
|
+ id: "usermedia_missing_device",
|
|
|
257
|
+ status: error.gum.devices
|
|
|
258
|
+ };
|
|
|
259
|
+ Statistics.sendLog(JSON.stringify(logObject));
|
|
|
260
|
+ Statistics.analytics.sendEvent(
|
|
|
261
|
+ "getUserMedia.deviceNotFound."
|
|
|
262
|
+ + error.gum.devices.join('.'));
|
|
253
|
263
|
} else {
|
|
254
|
264
|
// Report gUM failed to the stats
|
|
255
|
265
|
Statistics.sendGetUserMediaFailed(error);
|
|
|
266
|
+ Statistics.analytics.sendEvent(
|
|
|
267
|
+ addDeviceTypeToAnalyticsEvent(
|
|
|
268
|
+ "getUserMedia.failed", options) + '.' + error.name,
|
|
|
269
|
+ options);
|
|
256
|
270
|
}
|
|
257
|
271
|
|
|
258
|
272
|
window.connectionTimes["obtainPermissions.end"] =
|
|
259
|
273
|
window.performance.now();
|
|
260
|
274
|
|
|
261
|
|
-
|
|
262
|
|
- Statistics.analytics.sendEvent(
|
|
263
|
|
- addDeviceTypeToAnalyticsEvent(
|
|
264
|
|
- "getUserMedia.failed", options) + '.' + error.name,
|
|
265
|
|
- options);
|
|
266
|
|
-
|
|
267
|
275
|
return Promise.reject(error);
|
|
268
|
276
|
}.bind(this));
|
|
269
|
277
|
},
|