-
Notifications
You must be signed in to change notification settings - Fork 12.8k
dom.lib.ts: MediaDevices.getDisplayMedia is in the wrong place #31821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Broken since 2.9 (or maybe 2.8, hard to tell where the cutoff is). 79e5e79 |
I'm not sure where this is coming from actually. It's not anywhere in src/lib and a recursive grep of the typescript repo only turns up the one hit for |
This goes away entirely in #32578. That explains why I can't find any mention of it in the source. |
Closing for now. We can investigate re-adding it under MediaDevices, based on the w3c spec. |
Hi @sandersn this is a huge issue for us, can you please tell us what is the status of it or a workaround we can use ?? We don't find the getDisplayMedia anywhere |
It's been a while since I looked at this, so this is a bit of a guess:
|
How about not closing issues until they, you know, actually get fixed? Then, maybe, they won’t get dropped on the floor like this? |
surely that's a duplicate of this issue? |
I finally fix the issue by using Javascript instead of typescript |
in vue add interfaces in shims-tsx.d.ts declare global { interface MediaTrackConstraintSet { |
TypeScript Version: 3.5.1
https://w3c.github.io/mediacapture-screen-share/#mediadevices-additions
in dom.lib.ts
navigator.mediaDevices.getDisplayMedia
is not found. it looks like it's defined onnavigator
whereas it should be in theMediaDevices
type.TypeScript/lib/lib.dom.d.ts
Lines 10579 to 10583 in 8705844
The text was updated successfully, but these errors were encountered: