Browser gets camera permission TypeError: Cannot read property 'getUserMedia' of undefined

Solution

Type in the browser

chrome://flags/#unsafely-treat-insecure-origin-as-secure

insert image description here

Enter the address to obtain permission, select enabled

Then restart the browser to access and there will be a prompt to obtain the camera permission.

Guess you like

Origin blog.csdn.net/weixin_41891519/article/details/118346140