问题描述
我有一个网址:A. https://a.name.com,其中一个iframe的网址为:B. https://b.name.com
B包含一个需要访问摄像头和麦克风的SDK。
B使用以下行嵌入到A中:
<iframe src={url} allow="camera;microphone" scrolling="no" height="100%" width="100%" style={{ border: "0px" }} >
</iframe>
问题:尝试在Firefox Android上打开https://a.name.com时,它会询问我相机和麦克风的权限,但是当我允许时,它并没有打开相机。 相反,如果我将https://b.name.com直接放在网址栏中,则会按预期方式打开相机。
Android的Firefox控制台中显示以下错误:
NotAllowedError: The request is not allowed by the user agent or the platform in the current context
B中使用的SDK:Banuba
Firefox Android版本:80.1.2
尝试在Android上使用Chrome(v81.0.4044.138)或在桌面上使用Chrome(v84.0.4147.125)和Firefox(v79.0)来访问https://a.name.com时,我没有遇到此问题。 / p>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)