Steps to reproduce
I’ve been unsuccessfully trying to use (the experimental) navigator.getDisplayMedia. I’ve tried two things: first, to play it in a local video tag, and secondly to send the mediastream across an RTCPeerConnection, none of which I have gotten to work. When exchanging the mediastream for one obtained through getUserMedia it works as expected.
I’ve created a reproducible test-case:
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Steven K.”
Any updates on this? Please let me know if there’s anything I can do to help.
Sorry for pinging again. I can still reproduce the issue with Edge 41.16299.248.0, any updates on this?
Chrome and Firefox have non-standard ways of supporting screen sharing which work well. This tracker: https://developer.microsoft.com/en-us/microsoft-edge/platform/status/screencapture/ is still true since the getDisplayMedia API (according to the standard) is not in place in any other browsers yet. Edge could lead the way here as the first major browser to support the standard! But if not, a non-standard means would at least keep Edge at par with other major browsers.
I did some more testing on the latest weekly build (
EdgeHTML 17.17134) and found that it now works as expected. Excited to see this launch in the next stable release.
- Microsoft Edge Team
Changed Status to “Fixed”
Thank you for giving an update. I apologize for the delay and not responding sooner. The lead developer in this area told me to re-test in a build greater than or equal to 17120. I appreciate you doing that for me. :)
Thanks again for submitting this. We review the tickets when then come in, even though we don’t always respond immediately.
Thank you for your reply Steven. I’m glad to have this confusion cleared out.
For what it’s worth, it would have greatly helped to have the information you were provided relayed to us, especially given that the issue was bumped by people having similar issues :)
I got MediaStreamError.
How to solve it?
@Wilhelm, feedback received. I will post similar items in the future, I.e. in the event someone like yourself is willing to do the testing. It does make sense that the users in the thread would be willing to help speed things along.
@kenji, will you attach your repro here so I can test it?
Sorry, I don’t know create repo.
How to create repo?
sorry, miss read repro => repo.
I participated in the Insider Program and this error occurred, so I reinstalled Win 10, but after reinstalling I got the same error.
I created a test page and called on Twitter’s followers to try this page
There seems to be one person who got the same error as me and this person seems to have recently just reinstalled Win10
Three people who worked. It seems that one of the workers tried it with Mac’s BootCapmp.
No problem. When I first read your response, I thought I had typed it wrong. Thanks for the update.
Can you try the repro that Wilhelm provided?
I tried Wilhelm’s repro.
Again, an error occurred, Screen Capture could not be performed.
Do you support DisplayCaptureSurfaceType? If so, what is the property name of constraints?
I wonder the same as kenji t. asked. Is it an option to limit whether the user can only share window or the whole display? For my use case I would like to limit the user to only be able to share the display, but not individual applications.
Hi Maria, Kenji,
The repro that Wilhelm provided allows sharing of the display or an individual windows/application. This was fixed and made available since build 17134.
Changed Status from “Fixed”
While I was able to get it working inside a weekly (developer) build (see #comment-4), I’m now running into an entirely different problem in (what seems to be) the latest stable build, which has the same EdgeHTML version number (
17.17134). I’ve updated my example on github, and it’s described my steps in issue 17357055. Once again, I sincerely hope that this is nothing but a misunderstanding/misinterpretation of how the API is supposed to be invoked, and not an actual bug.
To check if this is the case, can you please test the basic example in the repo? Since it does not require a signaling server, you can test it directly at wanecek.github.io/get-display-media-test/public/local-stream.html. The expected outcome is that a your shared screen is shown inside a `` object on the page.
If nothing happens when pressing the button, check the console and see if you see the
MediaStreamErrordescribed in the issue referenced above. You can then mock the getDisplayMedia function by entering the following into the console, which will cause requests to getDisplayMedia to be proxied to getUserMedia:
navigator.getDisplayMedia = (args) => navigator.mediaDevices.getUserMedia(args)
Refresh the page and the changes will be reset.
Looking forward to hearing back from you soon :)
- Microsoft Edge Team
Changed Assigned To to “Gurpreet V.”
Changed Status to “Not reproducible”
I get the same problem as Wilhelm on my wife’s laptop (an almost unused computer with latest Edge). The dialog to allow streaming appears once and then fails. Any attempts after that fails. Streaming is allowed for the site if I check site settings but it fails.
On my developer PC with the same version of Edge it works - always. There seems to be some kind of dependency on some secret library that needs to be installed but is not installed on a plain vanilla PC.
Could you investigate this further?