大网数据广告活动
网站运营与故障问答

What is appropriate video structured data when using HLS or Dash?

· 52CE 我爱测

This is an example of standard structured data for video by Google : { "@context": "https://schema.org", "@type": "VideoObject", "name": "...", "description": "...", "thumbnailUrl": "...", "uploadDate": "2016-03-31T08:00:00+08:00…

问题原文

原帖链接 · Saman Mohamadi · CC BY-SA 4.0

This is an example of standard structured data for video by Google:

{
  "@context": "https://schema.org",
  "@type": "VideoObject",
  "name": "...",
  "description": "...",
  "thumbnailUrl": "...",
  "uploadDate": "2016-03-31T08:00:00+08:00",
  "duration": "PT1M54S",
  "contentUrl": "https://www.example.com/video/123/file.mp4",
  "embedUrl": "https://www.example.com/embed/123",
  "interactionCount": "5647018"
}

Here, there is the contentUrl field which points to an MP4 file.

What should I use for contentUrl because I'm using Dash and there is no single MP4 file?

I insist about this because I think it's playing the main role when Google decides to show the rich snippets of video in the search result.

已采纳解答

原帖链接 · Maximillian Laumeister · CC BY-SA 4.0

If you're already going through the trouble of using Dash, you may consider having an extra copy of the video as a single MP4 file both for the purposes of this structured data and also as a fallback for legacy browsers.

However if you would rather not do that, realize that contentUrl is just a recommended property and not a required property. Not just YouTube (which you would expect to have an in with Google Search), but also other third party video sites like Vimeo leave out the contentUrl property for their videos and they still get rich snippets, so it's not strictly required at least if your site has a certain amount of authority.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-01-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。