已从应用程序打开浏览器权限(使用javascript)

所有浏览器均需要打开相机,麦克风,弹出窗口等权限。您可以从应用程序中打开权限窗口(使用javascript)吗?还是只有浏览器才能做到?

enter image description here

评论
in_id
in_id

来自mdn:

The MediaDevices.getUserMedia() method prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

点赞
评论