
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