Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not entering Cardboard mode #153

Open
s-thom opened this issue Jul 2, 2016 · 2 comments
Open

Not entering Cardboard mode #153

s-thom opened this issue Jul 2, 2016 · 2 comments

Comments

@s-thom
Copy link

s-thom commented Jul 2, 2016

Device: Nexus 6P
Android Version: Nougat Dev Preview
Chrome Version: 53.0.2782.2 (current Chrome Dev release)
WebVR flag enabled in chrome://flags

Steps to reproduce:

  1. Clone repository
  2. Open page on device
  3. Tap Cardboard icon

Exception text:

webvr-manager.js:488 
Uncaught (in promise) TypeError: Failed to execute 'requestPresent' on 'VRDisplay': The 1st argument is neither an array, nor does it have indexed properties.(…)
WebVRManager.enterVRMode_ @ webvr-manager.js:488
WebVRManager.onVRClick_   @ webvr-manager.js:550
Emitter.emit              @ webvr-manager.js:176
(anonymous function)      @ webvr-manager.js:131
@s-thom s-thom changed the title Boilerplate not working Not entering Cardboard mode Jul 2, 2016
@s-thom
Copy link
Author

s-thom commented Jul 2, 2016

According to the spec, [VRDisplay].requestPresent() requires a sequence of VRLayers.

Wrapping the object literal in an array results in a different exception:

webvr-manager.js:525 
Uncaught (in promise) DOMException: VRDisplay cannot present
WebVRManager.enterVRMode_ @ webvr-manager.js:525
WebVRManager.onVRClick_   @ webvr-manager.js:587
Emitter.emit              @ webvr-manager.js:205
(anonymous function)      @ webvr-manager.js:155

@borismus
Copy link
Owner

borismus commented Jul 5, 2016

This will be fixed in the next release. requestPresent as spec'ed now takes
an array layers.

On Sat, Jul 2, 2016 at 12:42 AM secret_online [email protected]
wrote:

Device: Nexus 6P
Android Version: Nougat Dev Preview
Chrome Version: 53.0.2782.2 (current Chrome Dev release)
WebVR flag enabled in chrome://flags

Steps to reproduce:

  1. Clone repository
  2. Open page on device
  3. Tap Cardboard icon

Exception text:

webvr-manager.js:488
Uncaught (in promise) TypeError: Failed to execute 'requestPresent' on 'VRDisplay': The 1st argument is neither an array, nor does it have indexed properties.(…)
WebVRManager.enterVRMode_ @ webvr-manager.js:488
WebVRManager.onVRClick_ @ webvr-manager.js:550
Emitter.emit @ webvr-manager.js:176
(anonymous function) @ webvr-manager.js:131


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#153, or mute the
thread
https://github.com/notifications/unsubscribe/AAQ8gCcfLkMeaG2CYJ_53F-YVYT5QoUVks5qRhZrgaJpZM4JDn4q
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants