Video media needs playsinline & muted options

Created on 5 April 2019, over 5 years ago
Updated 23 March 2023, over 1 year ago

Problem/Motivation

Currently there is no way, to add the playsinline or muted attributes on <video> elements being output by the new Drupal code Media module. The playsinline attribute is required for background video to work on iOS devices. (Note: a similar to the same issue β†’ filed on the file_entity project a few years ago – this one is specifically a reference to the core Drupal media entity and file formatter.)

Proposed resolution

Two new checkboxes should be added to the display options "plays inline" and "muted".

Remaining tasks

Patch is included, may needs some tests?

User interface changes

Adds two new checkboxes to the "Manage display" options for the media video type.

API changes

n/a

Data model changes

Adds playsinline to the media video schema.

Release notes snippet

Original report by chris_wearebraid

It would be excellent to add a playsinline option to media elements

✨ Feature request
Status

RTBC

Version

10.1 ✨

Component
File moduleΒ  β†’

Last updated 5 days ago

Live updates comments and jobs are added and updated live.
  • mobile

    Issue related to Drupal on mobile devices.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024