Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295389

Add playsinline option to Video media file formatter

$
0
0

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".
  • When selected a playsinline attribute is added to video tags
  • Adds update hook and an ENTITY_TYPE_presave hook to ensure exported configuration stays in sync with the addition of the new property. See #43

Remaining tasks

None.

User interface changes

Adds a new checkbox to the "Manage display" options for the media video type.
Screenshot of the new checkboxes

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


Viewing all articles
Browse latest Browse all 295389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>