The brightcove field validates input by parsing the Brightcove video ID and makes a MAPI call to find_video_by_id to determine if the video exists.
$bc->find('find_video_by_id', $video_id) : NULL;
See http://docs.brightcove.com/en/media/ for documenation on MAPI
The current implementation becomes problematic when setting publish times in the future.
In our case, which we believe is typical, we do not use Drupal to upload media to the Video Cloud. It's not documented in the BC API, but if you set the availability time for a video to be any time in the future, find_video_by_id returns null. This causes the BC video field in Drupal to fail to validate.
As a workaround, I'd like to provide a patch that provides a checkbox as part of the field that when, checked, will skip validation.
Comment | File | Size | Author |
---|---|---|---|
#1 | Screen Shot 2012-11-19 at 4.19.28 PM.png | 67.45 KB | Dustin Currie |
#1 | Screen Shot 2012-11-19 at 4.19.47 PM.png | 14.65 KB | Dustin Currie |
#1 | support-for-future-publishing-1845122-1.patch | 2.23 KB | Dustin Currie |
Screen Shot 2012-11-19 at 12.44.24 PM.png | 9.09 KB | Dustin Currie |
Comments
Comment #1
Dustin Currie CreditAttribution: Dustin Currie commentedSee SS. Patch adds a field setting to allow skipping BC ID validation If selected, a note is displayed below the ID field.
Comment #2
Dustin Currie CreditAttribution: Dustin Currie commentedComment #3
k.dani CreditAttribution: k.dani commentedOnly version 5 of the module will be supported for Drupal 7, so i moved the issue to that version.
Comment #4
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.