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

Android devices: rendering black when entering VR mode in A-Frame

点击"Enter 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 连接 6x 一加3

有没有人知道关于这个问题的任何信息并希望得到解决?

我们最终采用的解决方法是在使用移动 android 设备时更改 aframe,使其相信它正在使用三星 VR 设备。 AFrame 中的 android 设备似乎还没有实现某些功能,这就是我们采用此解决方案的原因。