Thanks for your kind replys. I built it myself, it took about a week for the initial site to go up, and a couple of months of tweaking.
I was able to get the thumbnails working by using the plugin "Post Image". To be able to show the thumbnails and preroll videos on podpress, I had to modify the player spawn code so that it would accept m4v's for ipods.
Here is what I added to podpress.js around line 134
case 'm4v':
if(strAutoStart == 'true') {
strAutoStart = '';
} else {
strAutoStart = '&autoStart=false';
}
//begin experimental m4v
//src="'+strMediaFile+'_1.jpg"
//src="'+strMediaFile+'"
filename = (strMediaFile.replace(/.m4v/i, ""));
if(navigator.userAgent.match(/mac/i)){
strResult = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320px" height="240px" codebase="http://www.apple.com/qtactivex/qtplugin.cab">';
strResult += ' <param name="src" value="'+filename+'_1.jpg" />';
strResult += ' <param name="href" value="'+strMediaFile+'" />';
strResult += ' <param name="scale" value="1" />';
strResult += ' <param name="showlogo" value="false" />';
strResult += ' <param name="controller" value="true" />';
strResult += ' <param name="autoplay" value="'+strAutoStart+'" />';
strResult += ' <param name="bgcolor" value="000000" />';
strResult += ' <param name="pluginspage" value="http://www.apple.com/quicktime/download/" />';
strResult += ' <embed href="'+strMediaFile+'" width="320px" height="260px" scale="1" cache="true" bgcolor="000000" showlogo="false" autoplay="'+strAutoStart+'" controller="true" src="'+filename+'_1.jpg" type="video/x-m4v" target="myself" pluginspage="http://www.apple.com/quicktime/download/"></embed>';
strResult += '</object><br /><br />';
}
else
{
strResult = '<embed src="'+podPressBackendURL+'players/flvplayer.swf" width="320" height="260" author="FOX XRIO 2" allowfullscreen="true" allowscriptaccess="always" repeat="list" stretching="fill" image="='+filename+'_1.jpg" flashvars="&controlbar=bottom&fullscreen=true&stretching=fill&repeat=list&file='+podPressBackendURL+'playlistm4v'+(Math.floor(Math.random()*3)+1)+'.php?filename='+filename+'&image='+filename+'_1.jpg" />';
}
//end experimental m4v
break;
As you can see from the code, the thumbnails must have the same name as the video file.
In order to get the prerolls to work, I created files called playlist1.php playlist2.php and playlist3.php (one for each preroll) I manually alter these to fit the individual prerolls that I want to run. Here is the sample code for one of these.
playlist1.php
<?php
$filename = (isset($_GET['filename'])) ? strval($_GET['filename']):'117';
$previewimage = ($_GET['filename']) ? strval($_GET['filename']):'117';
if (strpos($filename, '.flv') === false)
{$filename = $filename . '.flv';}
$filename = trim(''. $filename);
$year = substr($filename, 0, 4); // returns the year
$month = substr($filename, 4, 2); // returns the month
//if (strpos($previewimage, '_1.jpg') === false)
$previewimage1 = $previewimage . '_1.jpg';
$previewimage2 = trim(''. $previewimage1);
header("content-type:text/xml;charset=utf-8");
print <<<END
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Standard Playlist</title>
<info>http://www.foxrio2.com</info>
<annotation>Standard Playlist</annotation>
<trackList>
<track>
<title>Preroll</title>
<image>$previewimage2</image>
<location>http://www.foxrio2.com/images/drhospital.flv</location>
<info>http://www.dhr-rgv.com/home.htm</info>
<album>preroll</album>
<type>video</type>
</track>
<track>
<title>FOX Rio 2</title>
<image>$previewimage2</image>
<location>$filename</location>
<type>video</type>
</track>
</trackList>
</playlist>
END;
?>
I hope this information helps.