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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gold’s picture

Status: Needs review » Needs work

nuts. 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.

Gold’s picture

Status: Needs work » Needs review
FileSize
14.08 KB

Okay, 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.

Gold’s picture

Status: Needs review » Needs work

Sigh... Coffee hasn't kicked in. Fixing a couple of paths.

Gold’s picture

Status: Needs work » Needs review
FileSize
13.97 KB

paths fixed.

Gold’s picture

Moving some template logic into a preprocess function. This should hopefully be the last update.

Gold’s picture

minor update to the template. Using $var instead of $variables['var'] in the template now.

leewillis77’s picture

Thanks 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.

grndlvl’s picture

Needed 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.

k.dani’s picture

Version: 7.x-3.x-dev » 7.x-5.x-dev

Only version 5 of the module will be supported in the future, so i move the issue to this version.

jaydee1818’s picture

Are there any plans to escalate this? Responsive design is critical these days:

http://support.brightcove.com/en/video-cloud/docs/responsively-resizing-...

k.dani’s picture

Status: Needs review » Closed (fixed)

IResponsive layout and Smart Palyer API support have been added to tha latest dev version (Commit 8df5a65 on 7.x-5.x).