-
Notifications
You must be signed in to change notification settings - Fork 441
Navigator.MediaDevices.getDisplayMedia() is not present. #992
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
https://github.com/microsoft/TypeScript-DOM-lib-generator#additions
https://www.w3.org/TR/screen-capture/ |
If that's the case why do you include |
Sorry, I found the wrong URI (edited). navigator.mediaDevices.getUserMedia is in |
Ok thanks
…On Fri, Mar 19, 2021, 4:03 PM Holger Jeromin ***@***.***> wrote:
Sorry, I found the wrong URI (edited).
navigator.mediaDevices.getUserMedia is in
https://www.w3.org/TR/mediacapture-streams/
Is a W3C Candidate Recommendation
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#992 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5IW4BWIC3LYIO2WEXRMDLTEPC3HANCNFSM4ZPOHHAQ>
.
|
But https://github.com/microsoft/TypeScript-DOM-lib-generator#additions also says:
And about W3C Working Draft:
But according to Mozilla MDN (https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) this feature supported by all of these browsers since end of 2019. |
Yeah, #1034. @github-actions close |
Closing because @saschanaz is one of the code-owners of this repository. |
Hello,
I'm not sure how to edit the types (I can't find reference to navigator anywhere), but your output is incorrect. The
navigator.mediaDevices
object should have agetDisplayMedia(constraints)
method that returns aPromise<MediaStream
.See here: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
This has been an issue in the main typescript library for some time now: microsoft/TypeScript#33232 .
It seems like Typescript's files are generated by this library. This should be an easy fix for someone who knows what they're doing. Alternatively, point me to where the navigator.mediaDevices types are defined and I'll do it myself.
The text was updated successfully, but these errors were encountered: