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

On Chrome 74, Enter VR Mode on mobile stops working with http:// protocol. #344

Open
amanonymous opened this issue May 2, 2019 · 0 comments

Comments

@amanonymous
Copy link

amanonymous commented May 2, 2019

On Clicking a button enter VR Mode, element.requestFullscreen() is executed by calling the function requestPresent([{ source: _this.m_renderer.domElement }]);

requestFullscreen throws the error Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

So entering full screen is failing followed by below errors:

Uncaught (in promise) TypeError: fullscreen error
at requestFullscreen
at new Promise ()
at CardboardVRDisplay.VRDisplay.requestPresent
at HTMLButtonElement.button.onclick

Same error appears on mobile while visiting https://immersive-web.github.io/webvr-polyfill/examples/ and on clicking the VR button.

@amanonymous amanonymous changed the title On Chrome 74, Enter VR Mode on mobile stops working. On Chrome 74, Enter VR Mode on mobile stops working with http:// May 2, 2019
@amanonymous amanonymous changed the title On Chrome 74, Enter VR Mode on mobile stops working with http:// On Chrome 74, Enter VR Mode on mobile stops working with http:// protocol. May 2, 2019
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

1 participant