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

feat: add an option to force cardboard button #20

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

brandonocasey
Copy link
Contributor

No description provided.

src/plugin.js Outdated
@@ -451,7 +452,7 @@ class VR extends Plugin {
this.player_.addChild('BigVrPlayButton', {}, this.bigPlayButtonIndex_);
this.player_.bigPlayButton = this.player_.getChild('BigVrPlayButton');
// mobile devices
if (videojs.browser.IS_ANDROID || videojs.browser.IS_IOS) {
if (videojs.browser.IS_ANDROID || videojs.browser.IS_IOS || this.options_.forceCardboard) {
Copy link
Member

Choose a reason for hiding this comment

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

in here, do we know if we're using native VR or not? Would be good to have it added for the firefox 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.

we actually might with something like this.vrDisplay.isPolyfilled

Copy link
Member

Choose a reason for hiding this comment

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

we should do that then. Maybe in a another PR, though?

@brandonocasey brandonocasey force-pushed the feat/force-cardboard branch 3 times, most recently from 37583ff to 52ed1e4 Compare August 17, 2017 19:23
@brandonocasey brandonocasey merged commit 1dee5f7 into master Aug 17, 2017
@brandonocasey brandonocasey deleted the feat/force-cardboard branch August 17, 2017 19:33
mister-ben pushed a commit to mister-ben/videojs-vr that referenced this pull request Dec 4, 2023
three.js version revert back to v129 as 130 breaks renderer.getSize
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