Edge Chromium vs UWP: OpenFile dialog with integrated camera feature seams not implemented (pressing a Html5 fileupload button)

Alexander Dexler 21 Reputation points
2021-01-28T16:37:54.06+00:00

Hello, perhaps better in short:

A few weeks ago: Edge UWP => Win-Settings => Camera store-app access for Edge

=> Click on Html5-Button <input type=file...>
=> FileOpen dialog with integrated (UWP-App-) camera comes up.

Now: Edge Chromium => No integrated camera

Does anybody know the status quo of this feature? And if it's currently not supported or deprecated at all, is it possible to extend the FileOpen dialog by a chrome extension?

Many thanks in advance!!!

Microsoft Edge | Microsoft Edge development
{count} votes

Accepted answer
  1. Anonymous
    2021-02-01T09:00:19.857+00:00

    Hi @Alexander Dexler

    The way you used in Edge Legacy is called HTML Media Capture. It has bad support in desktop browsers. Of course, Edge Chromium doesn't support it.

    The widely supported way to access camera in desktop browser is using getUserMedia(). You can refer to this article for more information.
    FYI, there're some examples about using getUserMedia().


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Eric Lawrence 16 Reputation points Microsoft Employee
    2021-02-24T16:10:27.543+00:00

    The accepted answer here isn't quite right-- Basically, the story here is that UWP apps like Edge Legacy use a version of the file picker control that support UWP File Picker contracts (including the Camera and Photos apps). Win32 Apps (like Chrome and the new Edge) do not have access to the picker contracts. You'll see the same thing when looking at the file open dialogs for Paint (Win32) vs. Paint3D (UWP).

    The suggested workaround (use getUserMedia to access the camera directly from JavaScript) seems fine though.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.