0
我正面临着在使用brightcove媒体API在Drupal网站上制作视频库的问题。有人可以告诉我如何提取作者的详细信息,发布日期以及我需要在网页上显示视频的详细信息。我不知何故设法在我的页面上显示视频,但我仍然努力拔出其他细节并将其与我的视频一起显示在页面上。为了您的信息,我正在Drupal 6工作。有人可以帮我解决这个问题吗?使用Brightcove Media API创建视频库时遇到问题
我正面临着在使用brightcove媒体API在Drupal网站上制作视频库的问题。有人可以告诉我如何提取作者的详细信息,发布日期以及我需要在网页上显示视频的详细信息。我不知何故设法在我的页面上显示视频,但我仍然努力拔出其他细节并将其与我的视频一起显示在页面上。为了您的信息,我正在Drupal 6工作。有人可以帮我解决这个问题吗?使用Brightcove Media API创建视频库时遇到问题
你可能想看看以下有用的链接:
http://opensource.brightcove.com/project/PHP-MAPI-Wrapper/ http://developer.brightcove.com/en/documentation
我不知道我明白你的意思“作者“,Brightcove目前不会跟踪审计跟踪类型信息。例如,您无法查询谁上传了视频。只有属于该视频的元数据。
假设“作者”是自定义字段,您可以通过调用类似获得信息:
/**
* function custom_search() - search specified field for given value
* @param string [$term] - Required. The value to search for.
* @param string [$criteria] - any, all, or none. Default: any.
* @param string [$search_field] - Specify the field to look for the search term in. Default: search_text.
*/
/** Available search fields: display_name, reference_id, tag, custom_fields, search_text.
* Using search_text is the equivalent of searching displayName, shortDescription and longDescription fields
* and is also the same as omitting the field name altogether
*/
function custom_search($term, $criteria = 'any', $search_field = 'search_text') {
$bc = create_bcmapi();
$params = array(
'video_fields' => 'id,name,shortDescription,referenceId,tags,custom_fields'
);
$terms = array($criteria => $search_field.':'.$term);
$data['videos'] = $bc->search('video', $terms, $params);
return $data;
}
抱歉,这晚,但也许这将帮助别人。
你能发布你的代码吗?没有它,很难帮助你。 – Clive