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/separate big play button #11

Merged
merged 1 commit into from
Aug 7, 2017
Merged

Conversation

brandonocasey
Copy link
Contributor

Fixes #7
Based off of #10

@@ -351,6 +378,18 @@ const initPlugin = function(player, options) {
return;
}

player.removeChild('BigPlayButton');
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 null (or set to the vr bpb) out player.bigPlayButton as well and restore it on reset

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

Another comment. I also still need to review #10, I only looked at the commits for the BPB changes here.

src/plugin.js Outdated
const videoEl = player.el().getElementsByTagName('video')[0];
const container = player.el();
const defaultProjection = settings.projection;
const oldBigPlayButton = player.BigPlayButton;
Copy link
Member

Choose a reason for hiding this comment

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

this should be bigPlayButton.

Copy link
Member

Choose a reason for hiding this comment

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

Also, we probably don't need to store the old one. If it wasn't removed, we can just get the reference via getChild and then set it reset. One less thing to track ourselves here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Bug given that we add a new one in reset, we don't need to store a reference here.

@brandonocasey brandonocasey merged commit 3ae105e into master Aug 7, 2017
@brandonocasey brandonocasey deleted the fix/seperate-big-play-button branch August 7, 2017 18:47
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