麦克风否认未正确处理Android应用程序
我们有一个项目,可以尝试从我的JS函数中的AndRiod应用程序访问音频权限。(内部应用程序也在浏览器上运行),我这样做。
navigator.mediaDevices.getUserMedia({audio: true}).then(function(stream){
// do something with stream
}).catch(function() {
// no media recorder function
})
当用户拒绝音频权限时,它应该进入捕获部分,但不是并在应用程序上显示这样的内容。(具有“ OK”的模式)
当Android应用要求麦克风权限时,我单击否认,理想情况下应该进入捕获块,但这不会发生,并且它因而受到干扰警报我不知道哪些。
我看到的问题是,当我单击否认时,getusermedia会遇到错误,但事实并非如此,诺言仍然处于待处理状态,没有
We have a project where try to access the audio permissions from the andriod app where in my JS functions.(Internally App also runs on a browser) I am doing it like this.
navigator.mediaDevices.getUserMedia({audio: true}).then(function(stream){
// do something with stream
}).catch(function() {
// no media recorder function
})
When the user denies the audio permissions it should go to into catch part but it isn't and showing up something like this on the app.(A modal with "OK")
When the android app asks for permissions of microphone, I click on deny, then it should ideally go into catch block but thats not happening and its getting interfered by GOT IT
alert about which I have no idea about.
The problem I see is when I click on deny, getUserMedia throws errors but it doesn't and the promise still remains in pending state with nothing happening
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论