webrtc-troubleshoot
Advanced tools
Comparing version 6.1.5 to 6.1.6
{ | ||
"name": "webrtc-troubleshoot", | ||
"version": "6.1.5", | ||
"version": "6.1.6", | ||
"description": "A way to add webrtc troubleshooting to your app", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -205,4 +205,4 @@ // adapted from https://github.com/webrtc/testrtc/blob/master/src/js/bandwidth_test.js | ||
const pc = this.call.pc1; | ||
if (pc.getLocalStreams) { | ||
pc.getLocalStreams()[0].getTracks().forEach(t => t.stop()); | ||
if (pc.getSenders) { | ||
pc.getSenders().forEach(sender => sender.track.stop()); | ||
} | ||
@@ -209,0 +209,0 @@ if (pc.getTransceivers) { |
Sorry, the diff of this file is too big to display
441503