【问题标题】:How to get veoh video thumbnail using PHP如何使用 PHP 获取 veoh 视频缩略图
【发布时间】:2013-01-04 11:06:34
【问题描述】:

我正在开发一个 wordpress 插件 VIDEO LIST MANAGER:http://wordpress.org/extend/plugins/video-list-manager/

不知道 veoh 是否支持我们获取 veoh 视频缩略图。我想将 VEOH 添加到我的插件中,我需要的是: 1.嵌入链接(是) 2.缩略图(无)

请帮帮我!

谢谢

【问题讨论】:

标签: php wordpress video-thumbnails


【解决方案1】:

如果您有视频的链接,例如http://www.veoh.com/watch/abcdef123456首先需要使用API​​方法veoh.video.findByPermalink获取视频ID:

http://www.veoh.com/rest/v2/execute.xml?method=veoh.video.findByPermalink
                                       &permalink=abcdef123456
                                       &apiKey=12345678-1234-...

你会得到这个结构的 XML:

<rsp>
  <videoList offset="0" items="1" numItems="1">
    <video videoId="12345" ... >
    ...

使用该视频 ID,您可以使用 API 方法 veoh.video.getVideoThumbnails 获取该视频的缩略图:

http://www.veoh.com/rest/v2/execute.xml?method=veoh.video.getVideoThumbnails
                                       &videoId=12345
                                       &apiKey=12345678-1234-...

你会得到这个结构的 XML:

<rsp>
  <thumbList offset="0" items="33" numItems="10">
    <thumbnail lowResImage="http://....jpg" highResImage="http://....jpg">
    </thumbnail>
    <thumbnail lowResImage="http://....jpg" highResImage="http://....jpg">
    </thumbnail>
    ...

API 非常易于使用,完整的方法列表请参见documentation

【讨论】:

  • 我没有资格成为 veoh 的合伙人。所以,我不能拥有 API 密钥。 :(
  • 您不需要此方法的 API 机密...只是说。我猜仍然无法帮助您使用插件。
  • 谢谢,无论如何!所以我会忽略veoh并找到其他一些视频网站:|
猜你喜欢
  • 2011-05-12
  • 2013-11-22
  • 2011-10-12
  • 2015-11-16
  • 2015-07-30
  • 2010-11-19
  • 2012-03-28
  • 2019-10-12
  • 2013-06-05
相关资源
最近更新 更多