|
@@ -381,4 +381,17 @@ Statistics.prototype.sendFeedback = function(overall, detailed) {
|
381
|
381
|
|
382
|
382
|
Statistics.LOCAL_JID = require("../../service/statistics/constants").LOCAL_JID;
|
383
|
383
|
|
|
384
|
+/**
|
|
385
|
+ * Reports global error to CallStats.
|
|
386
|
+ *
|
|
387
|
+ * @param {Error} error
|
|
388
|
+ */
|
|
389
|
+Statistics.reportGlobalError = function (error) {
|
|
390
|
+ if (error instanceof JitsiTrackError && error.gum) {
|
|
391
|
+ this.sendGetUserMediaFailed(error);
|
|
392
|
+ } else {
|
|
393
|
+ this.sendUnhandledError(error);
|
|
394
|
+ }
|
|
395
|
+};
|
|
396
|
+
|
384
|
397
|
module.exports = Statistics;
|