|
@@ -29,6 +29,12 @@ const logger = getLogger(__filename);
|
29
|
29
|
*/
|
30
|
30
|
const IQ_TIMEOUT = 10000;
|
31
|
31
|
|
|
32
|
+/*
|
|
33
|
+ * The default number of samples (per stat) to keep when webrtc stats gathering
|
|
34
|
+ * is enabled in TraceablePeerConnection.
|
|
35
|
+ */
|
|
36
|
+const DEFAULT_MAX_STATS = 300;
|
|
37
|
+
|
32
|
38
|
/**
|
33
|
39
|
*
|
34
|
40
|
*/
|
|
@@ -248,6 +254,10 @@ export default class JingleSessionPC extends JingleSession {
|
248
|
254
|
|
249
|
255
|
const pcOptions = { disableRtx: this.room.options.disableRtx };
|
250
|
256
|
|
|
257
|
+ if (this.room.options.gatherStats) {
|
|
258
|
+ pcOptions.maxstats = DEFAULT_MAX_STATS;
|
|
259
|
+ }
|
|
260
|
+
|
251
|
261
|
if (this.isP2P) {
|
252
|
262
|
// simulcast needs to be disabled for P2P (121) calls
|
253
|
263
|
pcOptions.disableSimulcast = true;
|