用标签设置视频时长(set video duration with tag)

编程入门 行业动态 更新时间:2024-10-28 14:27:30
用标签设置视频时长(set video duration with tag)

我在我的应用程序中使用内置的OpenGraph动作类型“watch”。 当我发布此动作时,我只发送到对象页面的链接。 如文档中所述“默认情况下,start_time将设置为Open Graph故事中有关活动的发布时间,expires_in将设置为视频类型对象的持续时间,如其Open Graph对象标记中所指定的那样” Open Graph对象标记告诉我,持续时间应标记为

[meta property="video:duration" content="runtime in secs"]

我将此属性设置为6000,所以在页面的头部我有以下内容:

[meta property="og:type" content="movie" /] [meta property="og:title" content="blabla" /] [meta property="og:description" content="blablablablabla" /] [meta property="og:image" content="http://img.ivi.ru/static/ad/12be/ad12bea64103cc376c8a.0.jpg" /] [meta property="og:video" content="http://www.ivi.ru/video/player?_isB2C=1&videoId=82367&autoStart=1"] [meta property="og:video:type" content="application/x-shockwave-flash"] [meta property="video:duration" content="6000"]

但是当我发布动作时,它似乎已经完成,即它在我的时间轴上写着“观看”而不是“正在观看”。 有谁知道,我应该在页面上设置哪个属性让Facebook获得正确的电影持续时间?

对不起我的英文,谢谢你的帮助!

I use the built-in OpenGraph action type "watch" in my app. when I post this action I send just the link to the object page. As described in documentation "By default, start_time will be set to the publish time of the Open Graph story about the activity, and expires_in will be set to the duration of the video-type object as specified in its Open Graph object markup" So the Open Graph object markup tells me, that the duration should be marked as

[meta property="video:duration" content="runtime in secs"]

I set this property to 6000, so in the head of the page I have the following:

[meta property="og:type" content="movie" /] [meta property="og:title" content="blabla" /] [meta property="og:description" content="blablablablabla" /] [meta property="og:image" content="<image url>" /] [meta property="og:video" content="content url"] [meta property="og:video:type" content="application/x-shockwave-flash"] [meta property="video:duration" content="6000"]

But when I post the action, It seems to be finished i.e. it's written 'watched' instead of 'is watching' on my timeline. Does anybody know, which property should I set on the page to let Facebook to get the right movie duration?

sorry for my english and thank you for your help!

最满意答案

这是一个错误,您是否可以在https://developers.facebook.com/bugs上打开报告并在此评论中发布该链接以供其他人订阅?

但是,您可以通过在Action本身中指定“expires_in”属性来解决此问题。 有关详细信息,请参阅doc: https : //developers.facebook.com/docs/opengraph/actions/builtin/#watch

This is a bug, could you open a report at https://developers.facebook.com/bugs and post the link in a comment of this tread for others to subscribe to it?

However, you can workaround the issue by specifying the "expires_in" property in the Action itself. See the doc for details: https://developers.facebook.com/docs/opengraph/actions/builtin/#watch

更多推荐

本文发布于:2023-08-05 04:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428659.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时长   标签   视频   set   duration

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!