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.
This patch adds support for embedding playlists, and choosing which player should be the default playlist player. It also adds support for selecting what embed parameter (@videoPlayer, @videoTabs, etc) a player should use.
Note that this patch requires the patch for Media 2.x integration here: http://drupal.org/node/1307886#comment-7263472. I understand that the module maintainers are working on a different version for Media 2.x, but I needed this functionality so I had to use that patch for now.
Comment | File | Size | Author |
---|---|---|---|
#5 | brightcove-playlists-1990214-4.patch | 15.18 KB | theunraveler |
#3 | brightcove-playlists-1990214-3.patch | 14.79 KB | theunraveler |
#1 | brightcove-playlists-1990214-2.patch | 14.71 KB | theunraveler |
brightcove_playlists.patch | 12.14 KB | theunraveler |
Comments
Comment #1
theunraveler CreditAttribution: theunraveler commentedHere's another pass at this that fixes a couple things:
1. Recognizes playlists embedded with Brightcove short URLs.
2. Recognizes more types of playlist embed codes (@playlistCombo, @videoList).
3. Fixes media browser thumbnails for playlists.
Comment #2
dalinin the update function:
We're adding a column called 'param', but in the schema we call it 'embed'. But this also brings up the issue that the name is a bit ambiguous. Can we instead call it (and the corresponding occurrences elsewhere in the patch) 'embed_parameter'.
???
This might be too much of an assumption. How about
if ($resp && !empty($resp->redirect_url)) {
I don't think this will work. there's an unserialize, but it doesn't get re-serialized.
Is there any way to call the stream wrapper instead, because this is slightly different than its logic. May as well get $type that way too.
Otherwise this is great. Good to see that this could be done without making a new bundle of the File entity type (which might've broken other stuff in the Drupalverse that assumes videos are videos).
Comment #3
theunraveler CreditAttribution: theunraveler commenteddrupal_write_record()
takes care of the re-serializing.All of the other issues should be fixed in this patch.
Note: if you applied the previous patch, you'll either need to re-install the module, manually change the "param" database column, or set this module's schema_version to 7005 and run update.php (I changed the name of the "param" column to "embed_parameter").
Comment #4
dalinMarking this as "needs review" since it probably needs to be tested in a wider diversity of environments. But technically I think this is sound.
Comment #5
theunraveler CreditAttribution: theunraveler commentedSmall fix for thumbnails in the media browser search dialog.
Comment #6
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 #7
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedThis version of the module is no longer supported. Only the latest 2 major versions are supported, which are currently 8.x-1.x and 7.x-6.x. Therefore I'm tagging this issue as 'unsupported' and closing it (won't fix). If this feature is business critical for your organization, please contact your Brightcove account manager for further support.