Use when applies to any page embedding or hosting video content (YouTube, Vimeo, self-hosted). Use when adding video content to a site or auditing structured da
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-video-efff688f3f64 ,按照其中的说明把「video」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Pages with valid VideoObject schema are eligible for video-specific rich results and carousels in Google Search — a visibility advantage that pages without schema cannot access.
VideoObject JSON-LD schema to every page with embedded video contentname, description, thumbnailUrl, uploadDatecontentUrl (direct video file) or embedUrl (iframe embed URL)Find pages with embedded <video> elements, YouTube iframes, or Vimeo players. Check for a <script type='application/ld+json'> block containing "@type": "VideoObject". Verify required properties are present: name, description, thumbnailUrl, uploadDate. Run through Google's Rich Results Test.
Add a VideoObject JSON-LD block to each page with video. Populate name (video title), description (video description), thumbnailUrl (absolute URL to thumbnail image), uploadDate (ISO 8601 format), and either contentUrl or embedUrl. Validate with the Rich Results Test.
Explain how VideoObject schema enables video-specific rich results, which properties are required vs. recommended by Google, and the difference between contentUrl (direct file) and embedUrl (embed iframe URL).
Review metadata generation, rendered HTML, structured data, and response headers related to Add VideoObject schema to video pages. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.