Ver código fonte

Saves the time a data channel was opened in connectionTimes.

master
Boris Grozev 9 anos atrás
pai
commit
d894a7e579
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6
    0
      JitsiConference.js

+ 6
- 0
JitsiConference.js Ver arquivo

@@ -1070,6 +1070,12 @@ function setupListeners(conference) {
1070 1070
         }
1071 1071
     });
1072 1072
 
1073
+    conference.rtc.addListener(RTCEvents.DATA_CHANNEL_OPEN, function () {
1074
+        var now = window.performance.now();
1075
+        logger.log("(TIME) data channel opened ", now);
1076
+        conference.room.connectionTimes["session.initiate"] = now;
1077
+    });
1078
+
1073 1079
     conference.rtc.addListener(RTCEvents.LASTN_CHANGED, function (oldValue, newValue) {
1074 1080
         conference.eventEmitter.emit(JitsiConferenceEvents.IN_LAST_N_CHANGED, oldValue, newValue);
1075 1081
     });

Carregando…
Cancelar
Salvar