Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have built a site that allows the user to put up to 5 videos on the page and I thought it would be nice to use the videojs module to load those videos. However I noticed the template is looping through these multiple videos and putting them as new src values in the player which means I believe they don't get played. This surely can't be correct?
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedThe standard behavior of the module is to use all files uploaded to a multi-value field as alternative versions of the same file. In this way, the user can upload an MP4 and Ogg version of the same video to cater both Firefox and all the other browsers. However, I understand your initial assumption that all videos would be displayed simultaneously. I can imagine this to be an option in a future release. For now, the only solution is to have multiple fields with just one entry per field instead of one field with five entries. I hope that's not too much of a problem.
I will keep this issue open as a feature request for the option I mentioned above.
Comment #2
Daemon_Byte CreditAttribution: Daemon_Byte commentedI see. At the moment I have put this site on the back burner but when I get back to it I might look into implementing this and then I can contrib the code to you to add in the feature.
Comment #3
TelFiRE CreditAttribution: TelFiRE commentedEasy enough to just add an extra file field for each potential video, especially if you know it's exactly up to 5. However, it would be nice to be able to allow unlimited!
Comment #4
niteshshukla CreditAttribution: niteshshukla commentedi am no able to configure video module and video.js module.So please help me out by providing good documention.
Comment #5
mbrett5062 CreditAttribution: mbrett5062 commentedI understand what the default behavior should be, and that is indeed what I want. But I am getting multiple videos, not multiple sources for one video, when I have the single field set to multiple uploads. I am using this module with the video module for uploads and conversion.
Should I raise a new issue, or can we deal with that here?
Comment #6
Jorrit CreditAttribution: Jorrit as a volunteer commented