Add poster image to HTML5 media videos

Created on 21 March 2018, over 6 years ago
Updated 10 July 2024, 3 days ago

Problem/Motivation & Steps to reproduce

Drupal core comes with several Media entities; audio, file, image, external video and local video.

When a content editor uses the local video entity, it only allows you to upload the video. There is no default option to include a poster image.

Proposed resolution

Extend the possibility to map fields on a media entity.

  1. a mapping field for the poster

Remaining tasks

Now, the idea is to offer the possibility to display a poster image using content from the field_local_image_file for the HTML5 video.

It would be nice if this feature could be managed by {{ attributes }} but I cannot figure how to implement this.

Thank you!

Gilles

User interface changes

1 extra mapping field at the local video media entity

API changes

-

Data model changes

-

Feature request
Status

Needs work

Version

11.0 🔥

Component
Media 

Last updated about 3 hours ago

Created by

🇧🇪Belgium bailleux

Live updates comments and jobs are added and updated live.
  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

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.69.0 2024