Tube Ace for WordPress Theme & Plugin Now Available!

XML Feeds

Example XML feed:
<?xml version="1.0" encoding="UTF-8"?>
<videos>
  <updated>2006-04-06T20:30:34+01:00</updated>
  <total>1234</total>
  <video>
    <id>123</id>
    <title>Video title</title>
    <description>Video description</description>
    <tags>tag1,tag2,tag3,tag4,two-words tag</tags>       
    <paysite>paysite.com</paysite>
    <performers>performer1,performer2,performer3</performers>
    <join_url>http://www.paysite.com/?affid=1234</join_url>
    <mobile_join_url>http://www.paysite.com/?affid=1234</mobile_join_url>
    <flv_embed>
      <![CDATA[<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' 
      codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' 
      width='454' height='402' id='player' align='middle'><param name='allowScriptAccess' 
      value='sameDomain' /><param name='allowFullScreen' value='true' /><param name='menu' value='false' />
      <param name='swLiveConnect' value='true' /><param name='quality' value='best' />
      <param name='movie' value='http://www.sponsor.com/video.flv/>
      <param name='quality' value='best' /><param name='bgcolor' value='#dfe5ef' />
      <embed src='http://www.sponsor.com/video.flv' menu='false' scale='noscale' quality='best' bgcolor='#dfe5ef' 
      width='454' height='402' name='FLVplayer' align='middle' allowScriptAccess='sameDomain' 
      allowFullScreen='true' type='application/x-shockwave-flash' 
      pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>]]>
      </flv_embed> 
    <clip_url>http://video.site.com/galleries/1234/</clip_url>
    <screen_url>http://img.site.com/galleries/1234/</screen_url>	
    <clips>
      <clip>
        <duration>120</duration>
        <width>512</width>
        <height>240</height>
        <flv>1.flv</flv>
        <mp4>1.mp4</mp4>
        <screens>
          <screen>1_1.jpg</screen>
        </screens>
       </clip>             
    </clips>
  </video>
</videos>

Your feed should support range requests to allow users to fetch all galleries from your database if they need to. Range request is made by passing GET parameters to your feed url (eg. feed.php?start=0&limit=100) with ranges from 0-x, when you usually pass these parameters as range for MySQL LIMIT start,limit.

Working Example: http://webmasters.vidz.com/3mins/tools/dumptubeace.php?nats=844&pgid=2&cpid=1177&start=0&limit=100

Tag Description
<videos> Contains the videos for the feed.
<updated> Last time xml file was updated in RFC 3339 format
<total> This value is displayed only by range requests and contains total value of galleries in database. Range requests are requests for galleries when two parameters are passed to feed url, for eg. feed.php?start=0&limit=100, where start and end values are free to set. Feed then returns galleries in range 0-100 from database (start=200&limit=100 returns galleries 200-300). This tag is very important because it tells to xml parser where to end by range requests. You have to follow names for parameters start and limit.
<video> Block which contains information about one video. This block is repeated for each item in feed.
<id> Unique ID of video from your database.
<title> Title of video, 255 characters max.
<description> Description of video.
<tags> Keywords related to video separated by comma, 255 characters max.
<paysite> Paysite name for video. This must be unique and static name, which means once you create it, can't be changed in future.
<performers> Names of performers starring in video separated by comma.
<join_url> URL of Join Page with affiliate tracking.
<mobile_join_url> URL of Mobile Join Page with affiliate tracking.
<flv_embed> Embed code for video.
<clip_url> Root directory for all videos.
<screen_url> Root directory for all video screenshots.
<clips> Block which contains informations about clip for given video. This block is repeat for each clip.
<clip> Contains information about one clip.
<duration> Duration of clip in seconds
<flv> Location to .flv video file, Absoloute URL or relative to <clip_url>.
<mp4> Location to .mp4 video file, Absoloute URL or relative to <clip_url>.
<screens> Block which contains informations about screenshots of given videoclip.
<screen> Location to image file, Absoloute URL or relative to <screen_url>

Additional Guidelines
Your XML file(s) must follow these guidelines: