-
Notifications
You must be signed in to change notification settings - Fork 24
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
ME-14916-picture-in-picture #522
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
chaptersButton: false, | ||
pictureInPictureToggle: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are no longer from videojs perspective part of the controlBar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are the same buttons, children of the controlBar, only that we expose the setting as part of our root config
@@ -368,6 +372,12 @@ class VideoPlayer extends Utils.mixin(Eventable) { | |||
} | |||
} | |||
|
|||
_initPictureInPicture() { | |||
if (!this.playerOptions.pictureInPictureToggle && this.videojs.controlBar) { | |||
this.videojs.controlBar.removeChild('pictureInPictureToggle'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just making sure i understand, we have to do this because the default for videojs is true right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and we want it hidden by default
No description provided.