使用 Brightcove Media API 创建视频库时遇到的问题

发布于 2024-12-18 22:14:03 字数 191 浏览 2 评论 0原文

我面临与使用 Brightcove media API 在 Drupal 网站上制作视频库相关的问题。有人可以告诉我如何提取作者的详细信息、发布日期以及我需要与页面上的视频一起显示的视频的详细信息。我以某种方式设法在我的页面上显示视频,但我仍然在努力提取其他细节并将其与我的视频一起显示在页面上。供您参考,我正在 Drupal 6 中工作。有人可以帮我解决这个问题吗?

I am facing a problem related to making a video library on my Drupal website using brightcove media API . Can someone please tell me how do I pull out the details of author, date posted and details about the video which I need to display along with the video on my page. I have somehow managed to display the video on my page but I am still struggling with pulling out other details and displaying it along with my video on the page. For your information, I am working in Drupal 6. Can someone please help me out with this??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羁绊已千年 2024-12-25 22:14:03

您可能需要查看以下有用的链接:

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;
}

抱歉,这太晚了,但也许它会对其他人有所帮助。

You might want to check out the following helpful links:

http://opensource.brightcove.com/project/PHP-MAPI-Wrapper/
http://developer.brightcove.com/en/documentation

I'm not sure I understand what you mean by "author", Brightcove currently does not track audit trail type info. For example you cannot query who uploaded the video. Only metadata that belongs to the video.

Assuming "Author" is a custom field, you can obtain that info by doing a call something like:

/**
 * 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;
}

Sorry this is late, but maybe it will help someone else.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文