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

Reset the VRDisplay between videos #8

Closed
brandonocasey opened this issue Aug 2, 2017 · 0 comments · Fixed by #10
Closed

Reset the VRDisplay between videos #8

brandonocasey opened this issue Aug 2, 2017 · 0 comments · Fixed by #10

Comments

@brandonocasey
Copy link
Contributor

brandonocasey commented Aug 2, 2017

We should reset the VRDisplay position on loadeddata for source changes between 3D videos. This can currently be done for the webvr-polyfill mouse and keyboard controls by using:

window.navigator.getVRDisplays().then((displays) => {
  var display = displays[0];

  display.theta_ = 0;
  display.phi_ = 0;
});

The problem is that there is no standard way to reset the display. So mobile cardboard and touch controls, or native oculus controls won't have the same interface. Maybe destroying it an creating it again somehow would work? This will have to be done with #5

kevleyski added a commit to kevleyski/videojs-vr that referenced this issue Dec 20, 2022
chore: Swap webvr ro webxr polyfill packages
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

Successfully merging a pull request may close this issue.

1 participant