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

Comments

puidu created an issue. See original summary.

puidu’s picture

StatusFileSize
new1.5 KB

Patch attached

puidu’s picture

StatusFileSize
new1.16 KB

Sorry, I re-attach as the previous one contains staff from tower.

anybody’s picture

Status: Active » Closed (outdated)

Indeed this was an issue in 3.x. - we also wondered about it when creating 1.x! Still merging this might break existing sites!

We solved this in 10.x and provide two formatters there now. The "VideoJS Player with fallback sources" keeps the old implementation. The regular one shows multiple video players as expected.

See the 10.x README for details.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.