GetUsermedia Close Stream

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