-
Notifications
You must be signed in to change notification settings - Fork 451
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
Vive, Rift HMDs not being recognized in getDeviceByType_() #170
Vive, Rift HMDs not being recognized in getDeviceByType_() #170
Comments
getDeviceByType_()
getDeviceByType_()
getDeviceByType_()
I'm experiencing the same issue, it only seems to work on chromium vr build for android. |
I can also reproduce this with the latest chromium build on windows (56.0.2910.0) |
I think the root cause is that |
If you run the polyfill when native VR is available, you won't be able to put the player into VR mode properly. This should fix borismus/webvr-boilerplate#170 and videojs/videojs-vr#14
If you run the polyfill when native VR is available, you won't be able to put the player into VR mode properly. This should fix borismus/webvr-boilerplate#170 and videojs/videojs-vr#14
With both Vive and Rift, on both Chromium 56.0.2902.0 and Firefox Nightly, the
getDeviceByType_()
function is not seeing the HMD and is returning null.The problem seems to be that the
instanceof
check in this line is not returning true https://github.com/borismus/webvr-boilerplate/blob/master/src/webvr-manager.js#L139This is happening even though there is indeed a
VRDisplay
object available (either Vive or Rift), and if I encourage the check to return true (by inspecting theVRDisplay.displayName
property, for example), everything works fine. I have used a breakpoint to inspect the VRDisplay object, and to my eye it looks fine - I have no idea why theinstanceof
check is returning false.For reference, my current patch for that line (which works with both systems, on both browsers), is this monstrosity:
The text was updated successfully, but these errors were encountered: