We had implemented the jw-player succesfully on our site. But our customers want to fast forward the movie, so I added the xmoov script.
On our test site http://www.class-3some.com/cctrial/index.html, I get the remark "video not found -url-", but when I direct the url from the browser http://www.class-3some.com/cctrial/player/4.flv, I can download the movie itself....
Xmoov.php, without the comments:
<?php
define('XMOOV_PATH_ROOT', '');
define('XMOOV_PATH_FILES', './');
define('XMOOV_CONF_LIMIT_BANDWIDTH', FALSE);
define('XMOOV_CONF_ALLOW_FILE_CACHE', TRUE);
define('XMOOV_BW_PACKET_SIZE', 90);
define('XMOOV_BW_PACKET_INTERVAL', 0.3);
define('XMOOV_CONF_ALLOW_DYNAMIC_BANDWIDTH', TRUE);
define('XMOOV_GET_FILE', 'file');
// define('XMOOV_GET_POSITION', 'pos'); // v3.x player
define('XMOOV_GET_POSITION', 'start'); // v4.x player
define('XMOOV_GET_AUTHENTICATION', 'key');
define('XMOOV_GET_BANDWIDTH', 'bw');
if(isset($_GET[XMOOV_GET_FILE]))
{
$seekPos = isset($_GET[XMOOV_GET_POSITION]) ? intval($_GET[XMOOV_GET_POSITION]) : 0;
$fileName = htmlspecialchars($_GET[XMOOV_GET_FILE]);
$file = XMOOV_PATH_ROOT . XMOOV_PATH_FILES . $fileName;
$packet_interval = (XMOOV_CONF_ALLOW_DYNAMIC_BANDWIDTH && isset($_GET[XMOOV_GET_BANDWIDTH])) ? getBandwidthLimit('interval') : XMOOV_BW_PACKET_INTERVAL;
$packet_size = ((XMOOV_CONF_ALLOW_DYNAMIC_BANDWIDTH && isset($_GET[XMOOV_GET_BANDWIDTH])) ? getBandwidthLimit('size') : XMOOV_BW_PACKET_SIZE) * 1042;
if (!file_exists($file))
{
print('<b>ERROR:</b> xmoov-php could not find (' . $file . ') please check your settings.');
exit();
}
if(file_exists($file) && strrchr($fileName, '.') == '.flv' && strlen($fileName) > 2 && !eregi(basename($_SERVER['PHP_SELF']), $fileName) && ereg('^[^./][^/]*$', $fileName))
{
$fh = fopen($file, 'rb') or die ('<b>ERROR:</b> xmoov-php could not open (' . $file . ')');
$fileSize = filesize($file) - (($seekPos > 0) ? $seekPos + 1 : 0);
if(!XMOOV_CONF_ALLOW_FILE_CACHE)
{
session_cache_limiter("nocache");
header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
}
header("Content-Type: video/x-flv");
header("Content-Length: " . $fileSize);
if($seekPos > 0)
{
print('FLV');
print(pack('C', 1));
print(pack('C', 1));
print(pack('N', 9));
print(pack('N', 9));
}
fseek($fh, $seekPos);
while(!feof($fh))
{
if(XMOOV_CONF_LIMIT_BANDWIDTH)
{
list($usec, $sec) = explode(' ', microtime());
$time_start = ((float)$usec + (float)$sec);
print(fread($fh, $packet_size));
list($usec, $sec) = explode(' ', microtime());
$time_stop = ((float)$usec + (float)$sec);
$time_difference = $time_stop - $time_start;
if($time_difference < (float)$packet_interval)
{
usleep((float)$packet_interval * 1000000 - (float)$time_difference * 1000000);
}
}
else
{
print(fread($fh, 16384));
}
}
}
}
function getBandwidthLimit($part)
{
switch($part)
{
case 'interval' :
switch($_GET[XMOOV_GET_BANDWIDTH])
{
case 'low' :
return 1;
break;
case 'mid' :
return 0.5;
break;
case 'high' :
return 0.3;
break;
default :
return XMOOV_BW_PACKET_INTERVAL;
break;
}
break;
case 'size' :
switch($_GET[XMOOV_GET_BANDWIDTH])
{
case 'low' :
return 10;
break;
case 'mid' :
return 40;
break;
case 'high' :
return 90;
break;
default :
return XMOOV_BW_PACKET_SIZE;
break;
}
break;
}
}
I already tried to change the url for the movie to a shorter version, same problem....
Can someone help me with this?
Ow yes, we have a licensed jw-player.
Greetings
Cindy

Test the xmoov script and get it working independently of the player.
This should work, but it doesn't. Perhaps because the script isn't in that location or doesn't have the correct permissions set.
http://www.class-3some.com/cctrial/player/Xmoov.php?file=4.flv&start=12345Based upon your FLV URI of:
http://www.class-3some.com/cctrial/player/4.flvand your use of current directory here:
define('XMOOV_PATH_FILES', './');if the Xmoov.php script was in that location and executable, I should get some response from your server, yet I don't.