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
Comment #2
puiduPatch attached
Comment #3
puiduSorry, I re-attach as the previous one contains staff from tower.
Comment #4
anybodyIndeed 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.