-
Notifications
You must be signed in to change notification settings - Fork 847
VideoPress Block: Add setting for playing video inline #19333
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
Conversation
…n creating the VideoPress url.
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
jgcaruso
left a comment
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.
Code looks good and testing on mobile worked as expected.
One thing I noticed, not a result of this PR but something we probably need to address in the player, tapping on the video doesn't pause it. You need to tap the pause button directly in order to pause the video.
jeherve
left a comment
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.
While the PR adds the attribute well, I have some questions:
- I don't see a difference in behaviour in Chrome on my Android device. Is that expected?
- "Play Inline" doesn't really tell us much about what the toggle will change in our video? Could we add some help text, like it's done for the Autoplay toggle?
Chrome doesn't go full-screen by default, so yeah that's expected. I think this is mainly for iOS.
Nice idea but it kinda sticks out like a sore thumb: It'd be nice if the |
|
Internal reference: r223581-wpcom |
jeherve
left a comment
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.
Since this is already committed to WordPress.com, let's keep the codebases in sync. We can see if we get feedback from post authors about what the new setting means.
|
Great news! One last step: head over to your WordPress.com diff, D59449-code, and commit it. Thank you! |


We added support to the VideoPress player to support the
playsinlineattribute which will prevent a video from automatically playing full screen when on mobile. This PR adds a user-facing UI for that attribute to be set.Changes proposed in this Pull Request:
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Plays Inlinesetting should be untoggled.Plays Inlinetoggle, and publish the post.playsinlineattribute applied to thevideotag.