webrtc-troubleshoot
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "webrtc-troubleshooter", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A way to add webrtc troubleshooting to your app", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
], | ||
"moduleType": [], | ||
"moduleType": []4 | ||
"keywords": [ | ||
@@ -21,0 +21,0 @@ "webrtc" |
{ | ||
"name": "webrtc-troubleshoot", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A way to add webrtc troubleshooting to your app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -146,6 +146,8 @@ // adapted from https://github.com/webrtc/testrtc/blob/master/src/js/bandwidth_test.js | ||
results.forEach((report) => { | ||
if (report.id === 'bweforvideo') { | ||
this.bweStats.add(Date.parse(report.timestamp), parseInt(report['googAvailableSendBandwidth'], 10)); | ||
} else if (report.type === 'ssrc') { | ||
this.rttStats.add(Date.parse(report.timestamp), parseInt(report['googRtt'], 10)); | ||
if (report.id === 'bweforvideo' && report.googAvailableSendBandwidth) { | ||
const value = parseInt(report['googAvailableSendBandwidth'], 10); | ||
this.bweStats.add(Date.parse(report.timestamp), value); | ||
} else if (report.type === 'ssrc' && report.googRtt) { | ||
const value = parseInt(report['googRtt'], 10); | ||
this.rttStats.add(Date.parse(report.timestamp), value); | ||
// Grab the last stats. | ||
@@ -152,0 +154,0 @@ this.videoStats[0] = report['googFrameWidthSent']; |
Sorry, the diff of this file is too big to display
235781
1890