1
「VR入力」アイコン(ゴーグルアイコン)をクリックすると、VRモードに入ると、画面は定期的に黒くなります。問題はランダムな時間に発生するようです。Androidデバイス:AフレームにVRモードに入ると黒くレンダリングする
Aフレームバージョン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.
問題は、デバイスに依存しoccouranceが異なるようだ:それは失敗(黒レンダリングするか成功している)私は次のエラーを受け取るかどうか
。でテスト
: サムスンギャラクシーS6/S6エッジ ネクサス6倍速 ワンプラス3
誰もがこの問題とうまくいけば修正に関するあらゆる情報を持っていますか?
多分、http://stackoverflow.com/questions/31509619/how-to-catch-domexception-in-chromeですか? .catch()ステートメントをhttps://github.com/aframevr/aframe/blob/master/src/core/scene/a-scene.js#L183に追加してみてください。テストするビルドを生成するには 'npm run dist'を実行します。 0.3.2を維持したい場合は、GitHubの0.3.2タグをチェックし、distを修正してビルドしてください。 – ngokevin