Browse Source

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

release-8443
Andrei Gavrilescu 2 years ago
parent
commit
bc6d341e6c
No account linked to committer's email address
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      JitsiMeetJS.ts

+ 12
- 0
JitsiMeetJS.ts View File

200
      * Expose rtcstats to the public API. 
200
      * Expose rtcstats to the public API. 
201
      */
201
      */
202
     rtcstats: {
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
          * Sends a stats entry to rtcstats server.
216
          * Sends a stats entry to rtcstats server.
205
          * @param {string} statsType - The type of stats to send.
217
          * @param {string} statsType - The type of stats to send.

Loading…
Cancel
Save