Stop / kill WebRTC media stream Use stream.getTracks().forEach(track => track.stop());. stream.stop() was deprecated.