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.
Motivation
We have a client that needs these.
Proposed resolution
The attached patch provides these as options in various areas.
User interface changes
"Brightcove Smart Player" is available as a formatter in Brightcove Video fields.
Added support to the Players (http://example.com/admin/config/media/brightcove/players) for enabling responsive layout to the template.
API changes
There is some minimal CSS supplied for the responsive layout but a themer will likely want to compliment this with something more.
Comments
Comment #1
Goldnuts. Somehow, I missed a file. There's also https support that needs to be added but I'm out of time today. WIll make this a priority in the morning.
Comment #2
GoldOkay, this one got the extra files and includes support for adding the secureConnections parameter to tell BC that it needs to use https when we are.
Comment #3
GoldSigh... Coffee hasn't kicked in. Fixing a couple of paths.
Comment #4
Goldpaths fixed.
Comment #5
GoldMoving some template logic into a preprocess function. This should hopefully be the last update.
Comment #6
Goldminor update to the template. Using $var instead of $variables['var'] in the template now.
Comment #7
leewillis77 CreditAttribution: leewillis77 commentedThanks for the previous patch. We've just been looking at this and tried out the patch in #6. I've provided an updated patch that is a re-roll of patch #6 against 7.x-3.x with the following additions:
* hook_schema amended to include the new make_responsive field on brightcove_players table
* hook_update_7031 added to add the make_responsive field as an update if it doesn't already exist
I'm not sure what data type you had for this on your install, but I've set it to a NOT NULL INT with a default of 0 in the attached patch which seems to work for us.
Comment #8
grndlvl CreditAttribution: grndlvl commentedNeeded functionality in 7.x-4.x, however, the patch obviously didn't apply cleanly. Due to time constraints I only implemented the bare minimum to get responsive videos working for my setup. Here is what I have so far.
Comment #9
k.dani CreditAttribution: k.dani commentedOnly version 5 of the module will be supported in the future, so i move the issue to this version.
Comment #10
jaydee1818 CreditAttribution: jaydee1818 commentedAre there any plans to escalate this? Responsive design is critical these days:
http://support.brightcove.com/en/video-cloud/docs/responsively-resizing-...
Comment #11
k.dani CreditAttribution: k.dani commentedIResponsive layout and Smart Palyer API support have been added to tha latest dev version (Commit 8df5a65 on 7.x-5.x).