With the new brightcove API v6 that is compatible with v7.x-6.x, the ph library PHP-API-Wrapper controls the sort option by relevance by default. It would be better to have the media browser sorted by most recent instead of relevance especially with sites that have a lot of videos.

this can be accomplished by replacing this line:
$result = $cms->listVideos($search, NULL, $items_per_page, $items_per_page * $page);

by this:
$result = $cms->listVideos($search, '-updated_at', $items_per_page, $items_per_page * $page);

In brightcove_field.video.inc

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mqanneh created an issue. See original summary.

mqanneh’s picture

jan.mashat’s picture

Assigned: Unassigned » tamasd
Status: Active » Needs review
mqanneh’s picture

@tamasd
@jan.mashat

please review the patch.

mqanneh’s picture

Assigned: tamasd » Unassigned
FileSize
1.05 KB

Rerolling the patch against latest dev version.

mqanneh’s picture