html - VR iframe 允许无法识别的功能

标签 html iframe virtual-reality

我的网站中有一个与 Laravel 集成的 iframe,如下所示。

<iframe allow="vr" allowfullscreen="" frameborder="0" width="100%" height="100%" src="<External-URL>">

VR 模式无法正常工作。它在控制台中显示错误

Unrecognized feature: 'vr'.

请帮我解决这个问题。提前致谢

最佳答案

您必须在 iframe 上设置 allowvr="yes"。如果您转到https://aframe.io ,您会看到所有示例都是 iframe 的,因此您可以按照他们的示例进行操作。

<iframe allowvr="yes" src="https://aframe.io/aframe/examples/boilerplate/hello-world/"></iframe>

关于html - VR iframe 允许无法识别的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61574521/

相关文章:

javascript - 从 iframe 底部隐藏特定区域

unity3d - Canvas 没有在顶部渲染

html - max-width 属性不适用于 flex 元素的子项

html - <ul> 在 div 容器内水平居中

javascript - div 内的 p 元素比父 div 宽

jquery - 当 showCloseButton 设置为 'false' 时,Fancybox iframe 关闭按钮不会隐藏

javascript - iframe 刷新时更改 URL

html - 中心div在div

unity-game-engine - 如何让世界空间UI在Unity中始终可见?

unity3d - 如何在 Unity 上结合 Cardboard VR + Vuforia AR 插件?