1、在app刚刚启动的时候就申请了麦克风和摄像头权限了
2、在vue模块里面使用renderJs调用下面代码时候提示错误,fail Permission denied ,这个在安卓平台上是正常的。
navigator.getUserMedia(
{
audio: {
echoCancellation: true,
noiseSuppression: true
},
video: false,
},
(stream) => {
console.log("okok")
},
(error) => {
console.log("fail", error.message)
}
)
2 个回复
CyunZing (作者)
harmonyNext申请权限用的是https://ext.dcloud.net.cn/plugin?id=22032插件
CyunZing (作者)
分别是用过下面集中方式都不行