Linked Questions

Popular Questions

navigator.getDisplayMedia is not a function in angular 6

Asked by At

I am trying to share user screen and need to use getDisplayMedia but getting error during project compile time

Property 'getDisplayMedia' does not exist on type 'Navigator'

Here is the code

let stream = await navigator.getDisplayMedia({ video: true })

Package versions are as

  1. Node v10.14.2
  2. NPM v6.5.0
  3. @angular/cli v6.1.5

Related Questions