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/style override #17

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Fix/style override #17

merged 1 commit into from
Aug 11, 2017

Conversation

brandonocasey
Copy link
Contributor

fix: weird camera aspect ratio stretching
fix: pixelation issues on some devices 
fix: allow the player to start in cardboard mode
fix: psudo fullscreen on iOS

Fixes #13
Based on #15

fix: weird camera aspect stretching when rotating devices
fix: pseudo fullscreen on iOS
fix: allow the player to start in cardboard mode
}

changeSize_() {
this.player_.width(window.innerWidth);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The window size changes during orientation when we are pseudo fullscreen on iOS

};
// we use this to stop webvr-polyfill from making the canvas take up more
// space then the video element
const setInherit = debounce((mut) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A hacky work-around for webvr-polyfills canvas style changes that we don't want.

@brandonocasey brandonocasey merged commit 6f09814 into master Aug 11, 2017
@brandonocasey brandonocasey deleted the fix/style-override branch August 11, 2017 18:37
mister-ben pushed a commit to mister-ben/videojs-vr that referenced this pull request Dec 4, 2023
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.

Allow videos to be started in cardboard mode
2 participants