Forum Discussion
Dpoletaev
6 years agoHonored Guest
WebVR getVRDisplays() error
Hello!
I have a problem with WebVR API, when I call a getVRDisplays() Oculus Browser returns error: Uncaught (in promise) DOMException
Code:
but in Firefox Reality it works great, appearse only in Oculus Browser.
Maybe someone know where is a problem may be, thanks for help!
I have a problem with WebVR API, when I call a getVRDisplays() Oculus Browser returns error: Uncaught (in promise) DOMException
Code:
navigator.getVRDisplays().then(displays => {
if (displays.length) {
VRManager.display = displays[0];
console.log("VR api found " + VRManager.display.displayName);
}
});but in Firefox Reality it works great, appearse only in Oculus Browser.
Maybe someone know where is a problem may be, thanks for help!
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 3 years ago