-
Notifications
You must be signed in to change notification settings - Fork 12.8k
navigator.mediaDevices should have getDisplayMedia #33232
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
why they still not fix this problem... then how they're using right now |
Hi Team, Looks like this issue is not fixed yet, getDisplayMedia is still missing on mediaDevices. |
still an issue |
@LolliDepp Yeah still an issue |
someone got to fix the issue? |
I'm also having this issue |
Is there a workaround for this error? I'm using Angular 9 and can't build project. |
Workaround to disable Typescript error: |
Also having the issue =( |
Same issue :( |
Still a problem in nightly version. Maybe you can define it by yourself: declare global {
interface MediaDevices {
getDisplayMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
}
// if constraints config still lose some prop, you can define it by yourself also
interface MediaTrackConstraintSet {
displaySurface?: ConstrainDOMString;
logicalSurface?: ConstrainBoolean;
// more....
}
} |
Nope, still this problem, also trying workaround.. |
Workarounds are bad. getDisplayMedia is complex as it is. We need good definitions. |
Seconded - any progress? This API is probably only going to grow in in importance and popularity. |
Confirm if it's user media or display media guys! |
Still issue! |
@sandersn please have a look at this! |
Will it be resolved in v4.2.0 ? |
Typescript 4.2.3, 18 months later and still not fixed. It would be so simple! |
a fix for this would have really helped me during my ongoing, new adventure with WebRTC |
Typescript 4.3.5, still not fixed. I think it's because getDisplayMedia is W3C Working Draft, but that feature common used and supported by three leading browsers (Firefox, Chrome, Safari), according to Mozilla MDN . |
Plz add definitions for this! |
Is a fix being made for this? |
Please add definitions for getDisplayMedia. This is being used everywhere and supported by every major browser. |
If I understand the process correctly that generates these new types, it looks like |
|
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
per
lib.dom.d.ts
,MediaDevices
hasgetUserMedia
but notgetDisplayMedia
. also: https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts#L10201Expected behavior:
getDisplayMedia
should be present onMediaDevices
, according to w3c/mediacapture-screen-share#86Actual behavior:
getDisplayMedia
is missing onMediaDevices
Playground Link:
https://www.typescriptlang.org/play/#code/MYewdgzgLgBCAOUIwLwwN4wIYFcAmAliAFwwBmWANhAKYA0MAbgXjSTFAE440wC+AKDBZmAcyxQQnAHQBbGoSwARGs2A0I00TShKCEeJSwBPALIKCWABQIkASiA
Related Issues:
The text was updated successfully, but these errors were encountered: