Android设备:在A-Frame中进入VR模式时呈现黑色

时间:2017-01-12 11:45:22

标签: android ionic-framework aframe webvr

单击“输入VR”图标(护目镜图标)时,要进入VR模式,屏幕会定期变黑。这个问题似乎随机发生。

我们尝试使用A-Frame版本0.3.0和0.3.2。但行为没有区别。

是否失败(呈现黑色或成功)我收到以下错误:

aframe.min.js:281 Uncaught TypeError: Cannot read property 'length' of undefined
at r (aframe.min.js:281)
at M.fireVRDisplayPresentChange_ (aframe.min.js:58)
at HTMLDivElement.s (aframe.min.js:58)

aframe.min.js:149 Uncaught (in promise) DOMException: 
A call to screen.orientation.lock() or 
screen.orientation.unlock() canceled this call.

index.html#/lobby:1 Uncaught (in promise)     
DOMException: screen.orientation.lock() is not available on this device.

根据设备的不同,问题似乎有所不同。

测试: 三星Galaxy S6 / S6 Edge Nexus 6x 一加三

有没有人有关于这个问题的任何信息,希望能解决?

1 个答案:

答案 0 :(得分:0)

我们最终使用的解决方法是在使用移动Android设备时改变框架,让它相信它使用的是三星VR设备。似乎AFrame中的Android设备尚未实现某些功能,这就是我们采用此解决方案的原因。

相关问题