Video tag in the video template

Created on 8 February 2024, 10 months ago

Problem/Motivation

In case of a field with a cardinality >1, all videos are rendered inside the same video tag.
This is a good solution in case you want to upload the same video in different formats (mp4, webm etc) so the browser will choose the first source it supports.
But if you upload multiple different videos, current template does not work.

Steps to reproduce

Proposed resolution

I attach a simple patch that fits our needs.
A more complete solution could be to add a settings into the field formatter to choose, in case of multiple videos, if they are different versions of the same video or are different videos to render separately

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇮🇹Italy puidu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024