Getusermedia bliski strumień

stream.getTracks().forEach(track => track.stop())
ofroog