Video: Support for autoplaying gifs in Mobile Safari #41239
Description
Steps to reproduce
- Starting at URL: https://wordpress.com/block-editor/post/mysite.wordpress.com/12
- Add a video block
- Upload a video or choose a video from the Media Library (it's important to not use a link to a video)
What I expected
I expect the "Plays inline" option to be available, just as it is for externally hosted videos
What happened instead
The "Plays inline" option is missing from the right panel (Block | Video Settings)
Browser / OS version
Firefox 75.0 / macOS 10.15.3 (although I think the result is the same on any platform)
Screenshot / Video
Here you can see that the "Plays inline" option is not present for WP.com-hosted videos:
WP.com-hosted video |
---|
For completeness, here's how the "Plays inline" attribute looks for externally hosted videos:
Externally-hosted video |
---|
Context / Source
#painpoint Users sometimes want to upload videos and autoplay them like a gif. The playsinline
attribute is essential to make this happen on mobile Safari.
A video would need these attributes to autoplay in Mobile Safari:
<video autoplay loop muted playsinline></video
Found through a #user-report.
Additional Information
Support for "Plays inline" was added to the Gutenberg editor here. It's mentioned here that the VideoPress-enhanced video block (which is used when users upload videos) does not support playsinline
at the moment.
Activity