|
|
@@ -200,6 +200,18 @@ export default {
|
|
200
|
200
|
* Expose rtcstats to the public API.
|
|
201
|
201
|
*/
|
|
202
|
202
|
rtcstats: {
|
|
|
203
|
+ /**
|
|
|
204
|
+ * Sends identity data to the rtcstats server. This data is used
|
|
|
205
|
+ * to identify the specifics of a particular client, it can be any object
|
|
|
206
|
+ * and will show in the generated rtcstats dump under "identity" entries.
|
|
|
207
|
+ *
|
|
|
208
|
+ * @param {Object} identityData - Identity data to send.
|
|
|
209
|
+ * @returns {void}
|
|
|
210
|
+ */
|
|
|
211
|
+ sendIdentityEntry(identityData) {
|
|
|
212
|
+ RTCStats.sendIdentity(identityData);
|
|
|
213
|
+ },
|
|
|
214
|
+
|
|
203
|
215
|
/**
|
|
204
|
216
|
* Sends a stats entry to rtcstats server.
|
|
205
|
217
|
* @param {string} statsType - The type of stats to send.
|