Problem/Motivation
Currently there is no way to add the playsinline
attribute 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
New checkbox should be added to the display options "plays inline".
Remaining tasks
Need an update hook and an ENTITY_TYPE_presave hook to ensure exported configuration stays in sync with the addition of the new property. See #43
User interface changes
Adds a new checkbox 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