title: What causes the Failed to execute 'createObjectURL' error?
body: <p>I am trying to take a snapshot with the laptop camera.</p>
  
  <p>In used to work perfectly, but now I have an error in my console:</p>
  
  <blockquote>
    <p>ERROR Error: Uncaught (in promise): TypeError: Failed to execute
    'createObjectURL' on 'URL': No function was found that matched the
    signature provided.</p>
  </blockquote>
  
  <p>Here is my code (component.ts):</p>
  
  <pre><code>public ngAfterViewInit() {
      if (navigator.mediaDevices &amp;&amp; navigator.mediaDevices.getUserMedia) {
          navigator.mediaDevices.getUserMedia({ video: true }).then(stream =&gt; {
              this.video.nativeElement.src = window.URL.createObjectURL(stream);
              this.video.nativeElement.play();
          });
      }
  }
  </code></pre>