Webmasters

Video Search - Webmaster EDU

Video Platform Restrictions

Video Sitemaps allows you to indicate what platforms a video is allowed to be shown on. Platforms include computer browsers, mobile device browsers, and television browsers. If your video does not have any platform restrictions, you should omit the platform restriction tag. There is no platform restriction tag for mRSS feeds.

Specification

In video Sitemaps, the <video:platform> tag can be used to allow or deny the video from appearing in specific countries. Only one <video:platform> tag is allowed per video entry.

The <video:platform> tag should contain a list of space-delimited platform codes. Valid platform codes are described below.

Platform code Description
WEB Traditional computer browsers on desktops and laptops.
MOBILE Mobile browsers, such as those on cellular phones or tablets.
TV TV browsers, such as those available through GoogleTV devices and game consoles.

The required relationship attribute specifies the type of restriction.

  • relationship="allow" - The video will appear only on the specified platforms. If no platforms are specified, the video will not appear on any device.
  • relationship="deny" - The video will appear on all devices except for the specified platforms. If no platforms are specified, the video will appear on all devices.

Example

In this video Sitemap example, this video will only appear on desktop and mobile browsers.

   <url> 
     <loc>http://www.example.com/videos/some_video_landing_page.html</loc>
     <video:video>
       <video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc> 
       <video:title>Grilling steaks for summer</video:title>
       <video:description>Alkis shows you how to get perfectly done steaks every            
         time</video:description>
       <video:player_loc allow_embed="yes" autoplay="ap=1">
         http://www.example.com/videoplayer.swf?video=123</video:player_loc>
       <video:platform relationship="allow">WEB TV</video:restriction> 
     </video:video> 
   </url> 

You can find out more about video Sitemaps and the <video:platform> tag in the video Sitemaps article.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.