title: Stop/Close webcam stream which is opened by navigator.mediaDevices.getUserMedia
body: <p>I opened a webcam by using the following JavaScript code:</p>
  <pre class="lang-js prettyprint-override"><code>const stream = await navigator.mediaDevices.getUserMedia({ /* ... */ });
  </code></pre>
  <p>Is there any JavaScript code to stop or close the webcam? Thanks everyone.</p>