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.
Problem/Motivation
It would be great in addition to configurable sizes for there to be a simple "responsive" option, where the video fills the width of it's container and scales the proportions of the video accordingly.
Comments
Comment #2
altrugon CreditAttribution: altrugon at Affinity Bridge commented@Sam152 try the following SASS code in the meantime, it worked for me:
Credits to: http://codepen.io/jordanoaragao/pen/WQMRxK
Comment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedThanks. That'll be a good reference for implementing this feature.
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedI have started on this. The work left to do is to figure out how to generically target the video object/iframe/whatever and ensure it works across a variety of different field templates. Classy/core/fences for example should all display a responsive video.
Review for testbot, but this is a WIP.
Comment #5
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #6
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commented