lse</code> (stream does
not use audio or video, respectively).</p>
<p>Simple example usage:</p>
<pre class="language-dart"><code>window.navigator.getUserMedia(audio: true, video: true).then((stream) {
  var video = new VideoElement()
    ..autoplay = true
    ..src = Url.createObjectUrlFromStream(stream);
  document.body.append(video);
});
</code></pre>
<p>The user can also pass in Maps to the audio or video parameters to specify
mandatory and optional constraints for the media stream. Not passing in a
map,