diff --git a/www/js/channel/webRTCHandler.js b/www/js/channel/webRTCHandler.js index 62a399a..ffce29d 100644 --- a/www/js/channel/webRTCHandler.js +++ b/www/js/channel/webRTCHandler.js @@ -258,6 +258,14 @@ class webRTCHandler{ this.isBroadcasting = false; this.answered = false; + //If we're still broadcasting shit + if(this.broadcastingStream != null){ + //For every track media track we're pushin' down tha wire + for(let track of this.broadcastingStream.getTracks()){ + track.stop(); + } + } + //clear peer/media stream objects this.currentStream = null; this.broadcastingStream = null;