Skip to content

Video: Support for autoplaying gifs in Mobile Safari #41239

Open
@guarani

Description

Steps to reproduce

  1. Starting at URL: https://wordpress.com/block-editor/post/mysite.wordpress.com/12
  2. Add a video block
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Customer ReportIssues or PRs that were reported via Happiness. Previously known as "Happiness Request".[Browser] Safari[Feature] MediaThe media screen in Calypso, general media management, or integration with third party media.[Feature] VideoPressA feature to help you upload and insert videos on your site.[Type] Feature RequestFeature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions