Closed
Description
TypeScript Version: Version 3.7.0-dev.20190904, also 3.6.2
Search Terms: web api, media devices, display media, screen capture, navigator, types
Code
const opts = { audio: false, video: true }
navigator.mediaDevices.getDisplayMedia(opts) // TS2339: Property 'getDisplayMedia' does not exist on type 'MediaDevices'.
per lib.dom.d.ts
, MediaDevices
has getUserMedia
but not getDisplayMedia
. also: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts#L10201
Expected behavior:
getDisplayMedia
should be present on MediaDevices
, according to w3c/mediacapture-screen-share#86
Actual behavior:
getDisplayMedia
is missing on MediaDevices
Related Issues: