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: make cardboard button psudeo fullscreen on iOS #12

Merged
merged 3 commits into from
Aug 9, 2017

Conversation

brandonocasey
Copy link
Contributor

fix: hide cardboard button when fullscreen on Android
fix: typo that caused an error in the console

handleClick() {
window.dispatchEvent(new window.Event('vrdisplayactivate'));

handleActivate_() {
Copy link
Member

Choose a reason for hiding this comment

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

One thing to look into is whether player.enterFullWindow and player.exitFullWindow work for this usecase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

testing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does not appear to work

fix: hide cardboard button when fullscreen on Android
fix: typo that caused an error in the console
super(player, options);

window.addEventListener('vrdisplayactivate', () => this.handleActivate_());
window.addEventListener('vrdisplaydeactivate', () => this.handleDeactivate_());
Copy link
Member

Choose a reason for hiding this comment

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

Should probably make sure we clean up after ourselves in a dispose listener.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call, going to take some time to do that in player.js too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

scratch that its going to take a revamp of player.js which I would rather do in another PR

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

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

LGTM

@brandonocasey brandonocasey merged commit 17a41c0 into master Aug 9, 2017
@brandonocasey brandonocasey deleted the fix/mobile-cardboard branch August 11, 2017 17:59
mister-ben pushed a commit to mister-ben/videojs-vr that referenced this pull request Dec 4, 2023
chore: Swap webvr for 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 this pull request may close these issues.

3 participants