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

Fix/size and controls #6

Merged
merged 3 commits into from
Aug 2, 2017
Merged

Fix/size and controls #6

merged 3 commits into from
Aug 2, 2017

Conversation

brandonocasey
Copy link
Contributor

@@ -1,51 +0,0 @@
export default {
Copy link
Contributor Author

@brandonocasey brandonocasey Aug 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This was never used
  2. Most of the comments are out of date

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did WebVR Boilerplayer not look for it globally? Or is it because the config was being set too late? (See my comment about import ordering)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't possible to set because of the file we were using before (webvr-polyfill/build/webvr-polyfill)

src/plugin.js Outdated

// this is used to configure webvr-polyfill
// see https://github.com/googlevr/webvr-polyfill#configuration
const WebVRConfig = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all import statements are hoisted to the top. We should also write our code that way.

@@ -1,51 +0,0 @@
export default {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did WebVR Boilerplayer not look for it globally? Or is it because the config was being set too late? (See my comment about import ordering)

@@ -239,7 +258,7 @@ const vr = function(options) {
return;
}

const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 1000);
const camera = new THREE.PerspectiveCamera(75, player.currentWidth() / player.currentHeight(), 1, 1000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully, these are the last of them, haha

@brandonocasey brandonocasey merged commit d5ef81e into master Aug 2, 2017
@gkatsev gkatsev deleted the fix/size-and-controls branch August 2, 2017 22:26
kevleyski added a commit to kevleyski/videojs-vr that referenced this pull request Dec 20, 2022
chore: Swap webvr ro webxr polyfill packages (continue to use webvr p…
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 this pull request may close these issues.

2 participants