Browse Source

fix(JitsiConference|stats): use 'sendToAll'

Use 'sendToAll' for 'session.restart' and 'session.terminate' events.
master
paweldomas 9 years ago
parent
commit
5a8ed28287
1 changed files with 3 additions and 7 deletions
  1. 3
    7
      JitsiConference.js

+ 3
- 7
JitsiConference.js View File

793
     this.room.connectionTimes["session.initiate"] = now;
793
     this.room.connectionTimes["session.initiate"] = now;
794
     // Log "session.restart"
794
     // Log "session.restart"
795
     if (this.wasStopped) {
795
     if (this.wasStopped) {
796
-        Statistics.analytics.sendEvent("session.restart", now);
797
-        this.sendApplicationLog(JSON.stringify({ "id" : "session_restart"}));
796
+        Statistics.sendEventToAll("session.restart");
798
     }
797
     }
799
     // add info whether call is cross-region
798
     // add info whether call is cross-region
800
     var crossRegion = null;
799
     var crossRegion = null;
876
 = function (JingleSession, reasonCondition, reasonText) {
875
 = function (JingleSession, reasonCondition, reasonText) {
877
     logger.info("Call ended: " + reasonCondition + " - " + reasonText);
876
     logger.info("Call ended: " + reasonCondition + " - " + reasonText);
878
     this.wasStopped = true;
877
     this.wasStopped = true;
879
-    // Send analytics event
880
-    Statistics.analytics.sendEvent(
881
-        "session.terminate", window.performance.now());
882
-    // Sends "session.terminate" through the stats as well
883
-    this.sendApplicationLog(JSON.stringify({ "id" : "session_terminate" }));
878
+    // Send session.terminate event
879
+    Statistics.sendEventToAll("session.terminate");
884
     // Stop the stats
880
     // Stop the stats
885
     if (this.statistics) {
881
     if (this.statistics) {
886
         this.statistics.stopRemoteStats();
882
         this.statistics.stopRemoteStats();

Loading…
Cancel
Save