In the video search results, some videos are displayed with an animated preview. When you hover over the snippet of this kind of video, you can see an animation made from the video frames instead of a single image. The animated preview includes frames that may interest users.
This kind of animation attracts users' attention, provides more information about the video content, and increases the chances of viewing the video that's shown for a relevant query.
Enable for videos on the site
So that your site videos can have animated previews, follow these steps:
- Send video data to the search using markup.
- Add a video stream link to the markup. Please note that the video must be of good quality.
For XML, the stream link is specified in the
<meta property="ya:ovs:content_url" content="http://www.mywebsite.com/video/r5QNyPCDH.mp4"/>
<div itemscope itemtype="http://schema.org/VideoObject"> <link itemprop="contentUrl" href="http://www.mywebsite.com/video/r5QNyPCDH.mp4"/>
Prohibit preview creation
ya:ovs:allow_previewelement with the
<meta property="og:video" content="https://www.mysite.com/iframe/yacinema/123/"/> <meta property="ya:ovs:allow_preview" content="false"/>