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

ME-14916-picture-in-picture #522

Merged
merged 2 commits into from
Jan 25, 2024
Merged

ME-14916-picture-in-picture #522

merged 2 commits into from
Jan 25, 2024

Conversation

tsi
Copy link
Collaborator

@tsi tsi commented Jan 24, 2024

No description provided.

@tsi tsi self-assigned this Jan 24, 2024
Copy link
Contributor

@ehab-cl ehab-cl left a comment

Choose a reason for hiding this comment

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

💪

Comment on lines +12 to +13
chaptersButton: false,
pictureInPictureToggle: false,
Copy link
Contributor

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?

Copy link
Collaborator Author

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');
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@tsi tsi merged commit 8c271cc into edge Jan 25, 2024
2 checks passed
@tsi tsi deleted the ME-14916-picture-in-picture branch January 25, 2024 12:58
This was referenced Feb 13, 2024
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