Browse Source

fix(JingleSessionPC): separate p2p and jvb events

ICE connection state analytics for the JVB connection should not be
mixed up with the ones for the P2P connection.
dev1
paweldomas 8 years ago
parent
commit
c405d10f76
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      modules/xmpp/JingleSessionPC.js

+ 2
- 1
modules/xmpp/JingleSessionPC.js View File

@@ -282,7 +282,8 @@ export default class JingleSessionPC extends JingleSession {
282 282
                     + ` P2P? ${this.isP2P}:\t`,
283 283
                 now);
284 284
             Statistics.analytics.sendEvent(
285
-                `ice.${this.peerconnection.iceConnectionState}`,
285
+                `${this.isP2P ? 'p2p.ice.' : 'ice.'}`
286
+                    + `${this.peerconnection.iceConnectionState}`,
286 287
                 { value: now });
287 288
             this.room.eventEmitter.emit(
288 289
                 XMPPEvents.ICE_CONNECTION_STATE_CHANGED,

Loading…
Cancel
Save