Преглед изворни кода

feat(rtcstats): expose functionality to send identity data (#2393)

release-8443
Andrei Gavrilescu пре 2 година
родитељ
комит
bc6d341e6c
No account linked to committer's email address
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12
    0
      JitsiMeetJS.ts

+ 12
- 0
JitsiMeetJS.ts Прегледај датотеку

@@ -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.

Loading…
Откажи
Сачувај