SearchMonkey > Start Overview > Video

Video - A clip or other video

Example

YouTube - Irish dancing monkeys

Monkeys can also dance. And the music they prefer is Irish Step!

  • www.youtube.com/watch?v=44Y-_JAjAwE
  • 101k

Description

Play videos directly in Yahoo! Search. Add code to indicate to Yahoo! that a video exists on your page, and when we next crawl your site, we'll take care of the rest. From your markup, we’ll be able to extract structured data from your site and render it automatically in an enhanced result in search results.

Details

  • Types of video permitted: The Yahoo! Search video player currently supports Flash video only. Yahoo! is committed to delivering high-quality, relevant search results. Do not mark up content that is inappropriate, misleading, or violates any applicable laws.
  • Supported streaming Flash players include: Hulu, YouTube, Yahoo! Video, and Metacafe
  • New video players: Your enhanced result will only appear if you are currently using a pre-approved player or if your player is subsequently reviewed and approved for display. Not sure if your player is already approved? Search on Yahoo! Search with the "site:<domain>" keyword plus 1-2 other search query terms. For example: site:metacafe.com cute puppies. If an enhanced result does not appear, please complete the player submission form to request approval.
  • How soon after I add my markup will I see my enhanced result appear? Assuming you are using a pre-existing approved player or have had your new player approved, your enhanced result will appear after Yahoo! recrawls your page; this can take between a few days and a few weeks depending on your site.

Get Started

1. Use an approved player

See "Details" section above

2. Add code / markup to your site

Copy this code and replace the example text with your data to see an enhanced video display in Yahoo! Search.

  • Use RDFa markup to allow embedding your videos on third-party sites and to use extra features such as region restrictions.
  • Use Facebook Share markup for the simplest possible way to display your video in Yahoo! Search.
  • Use DataRSS XML to send your data to Yahoo! privately, using a feed. Once you have constructed your DataRSS feed, you must submit the feed to Yahoo!.

RDFa

Example 1

<object width="512" height="296" rel="media:video"
 resource="http://example.com/video_object.swf"
 xmlns:media="http://search.yahoo.com/searchmonkey/media/">
   <a rel="media:thumbnail" href="http://example.com/thumbnail_preview.jpg" />
   <param name="movie" value="http://example.com/video_object.swf" />
   <embed src="http://example.com/video_object.swf" type="application/x-shockwave-flash" width="512" height="296">
   </embed>
</object>

NOTE: Your video player's embed code might vary.

Example 2

<object width="512" height="296" rel="media:video" 
     resource="http://example.com/video_object.swf"
     xmlns:media="http://search.yahoo.com/searchmonkey/media/"
     xmlns:dc="http://purl.org/dc/terms/">
   <param name="movie" value="http://example.com/video_object.swf" />
   <embed src="http://example.com/video_object.swf"
       type="application/x-shockwave-flash" width="512" height="296"></embed>
   <a rel="media:thumbnail" href="http://example.com/thumbnail_preview.jpg" />
   <a rel="dc:license" href="http://example.com/terms_of_service.html" />
   <span property="dc:description" content="Cute Overload defines Baroo? as: Dogspeak for 'Whut the...?' 
       Frequently accompanied by the Canine Tilt and/or wrinkled brow for enhanced effect." />
   <span property="media:title" content="Baroo? - cute puppies" />
   <span property="media:width" content="512" />
   <span property="media:height" content="296" />
   <span property="media:type" content="application/x-shockwave-flash" />
   <span property="media:region" content="us" />
   <span property="media:region" content="uk" />
</object>

You may include even more data than this, such as user information and review information. This metadata will be available in SearchMonkey and Yahoo! Search BOSS for further use. For more information, refer to the RDFa specification or the RDFa wiki.

NOTE: To validate your markup with RDFa attributes, use this W3C DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

Facebook Share

Example 1

<head>
 <link rel="image_src" href="http://example.com/thumbnail_preview.jpg" />
 <link rel="video_src" href="http://example.com/video_object.swf" />
</head>

This is the minimum markup you need to trigger the Yahoo! Search video player on your page when that page turns up in search results.

Example 2

<head>
    <link rel="image_src" href="http://example.com/thumbnail_preview.jpg" />
    <link rel="video_src" href="http://example.com/video_object.swf"/>
    <meta name="description" content="Cute Overload defines Baroo? as: Dogspeak for 'Whut the...?' 
          Frequently accompanied by the Canine Tilt and/or wrinkled brow for enhanced effect." />
    <meta name="title" content="Baroo? - cute puppies" />
    <meta name="video_height" content="296" />
    <meta name="video_width" content="512" />
    <meta name="video_type" content="application/x-shockwave-flash" />
</head>

This markup not only triggers the Yahoo! Search video player on your page, but provides additional information to help improve the presentation of your result in Yahoo! Search.

Feed

Example 1

<y:adjunct xmlns:y="http://search.yahoo.com/datarss/" version="1.0" name="YOURID" >
  <y:item rel="dc:subject" resource="http://example.com/video_object.swf">
      <y:type typeof="media:Video" resource="http://example.com/video_object.swf">
          <y:item rel="media:thumbnail media:image" resource="http://example.com/thumbnail_preview.jpg"/>
          <y:item rel="dc:license" resource="http://example.com/terms_of_service.html" />
          <y:meta property="dc:title media:title">Baroo? - cute puppies</y:meta>
          <y:meta property="dc:description media:description">Cute Overload defines Baroo? as: Dogspeak for 'Whut the...?'
            Frequently accompanied by the Canine Tilt and/or wrinkled brow for enhanced effect.</y:meta>
          <y:meta property="media:height" datatype="xsd:integer">358</y:meta>
          <y:meta property="media:width" datatype="xsd:integer">576</y:meta>
          <y:meta property="media:region">us</y:meta>
          <y:meta property="media:region">uk</y:meta>
      <y:meta property="media:type dc:type">application/x-shockwave-flash</y:meta>
      </y:type>
  </y:item>
</y:adjunct>

This markup would be included in a DataRSS feed. It not only triggers the audio player on your page, but provides additional information to help improve the presentation of your result in Yahoo! Search.

3. Validate your markup

Test your markup to make sure your enhanced result will appear.

4. Wait until we recrawl your site for your enhanced result to appear on the search results page

This can take up to a few weeks depending on your site.

Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy | Terms of Service

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions