Tube Ace for WordPress Theme & Plugin Now Available!

XML Feeds

Example XML feed:
<?xml version="1.0" encoding="UTF-8"?>
    <title>Video title</title>
    <description>Video description</description>
    <tags>tag1,tag2,tag3,tag4,two-words tag</tags>       
      <![CDATA[<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' 
      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='>
      <param name='quality' value='best' /><param name='bgcolor' value='#dfe5ef' />
      <embed src='' 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='' /></object>]]>

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:

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: