|
@@ -67,6 +67,16 @@ var CallStats = {
|
67
|
67
|
pendingErrors.length = 0;
|
68
|
68
|
}
|
69
|
69
|
},
|
|
70
|
+ /**
|
|
71
|
+ * Returns true if the callstats integration is enabled, otherwise returns
|
|
72
|
+ * false.
|
|
73
|
+ *
|
|
74
|
+ * @returns true if the callstats integration is enabled, otherwise returns
|
|
75
|
+ * false.
|
|
76
|
+ */
|
|
77
|
+ isEnabled: function() {
|
|
78
|
+ return callStatsIntegrationEnabled;
|
|
79
|
+ },
|
70
|
80
|
pcCallback: function (err, msg) {
|
71
|
81
|
if (!callStats) {
|
72
|
82
|
return;
|
|
@@ -125,7 +135,14 @@ var CallStats = {
|
125
|
135
|
callStats.sendUserFeedback(
|
126
|
136
|
this.confID, feedbackJSON);
|
127
|
137
|
},
|
128
|
|
-
|
|
138
|
+ /**
|
|
139
|
+ * Reports an error to callstats.
|
|
140
|
+ *
|
|
141
|
+ * @param type the type of the error, which will be one of the wrtcFuncNames
|
|
142
|
+ * @param e the error
|
|
143
|
+ * @param pc the peerconnection
|
|
144
|
+ * @private
|
|
145
|
+ */
|
129
|
146
|
_reportError: function (type, e, pc) {
|
130
|
147
|
if (callStats) {
|
131
|
148
|
callStats.reportError(pc, this.confID, type, e);
|