Hi,
I'm trying to load .avi, mp4 from my server. However its not loading the video, I keep getting 'video not found or access denied' error. No clue why this is happening. I have similar video on youtube. when using youtube link in my xml file. it works fine but cannot read video files directly from the server. below is my code
<html>
<head>
<script src='http://www.wateraid.org/other/testarea/mediaplayer/swfobject.js'></script>
<script type='text/javascript'>
function CreatePlayer(theFile,go)
{
var s1 = new SWFObject('http://www.wateraid.org/other/testarea/mediaplayer/player.swf','preview','600','300','9.0.124');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addVariable('file',theFile);
s1.addVariable('width',"300");
s1.addVariable('height',"350");
s1.addVariable('displayheight',"225");
s1.addVariable('overstretch',"fit");
s1.addVariable('shuffle',"false");
s1.addVariable('thumbsinplaylist',"true");
s1.addVariable('autostart',go);
s1.write('placeholder');
};
</script>
</head>
<body onLoad="CreatePlayer('http://www.wateraid.org/other/testarea/mediaplayer/playlist_1.xml', false)">
<a href="#" onclick="CreatePlayer('http://www.wateraid.org/other/testarea/mediaplayer/playlist_1.xml', true);return false;">Playlist 1</a><br>
<div id="placeholder"><a href='http://www.macromedia.com/go/getflashplayer'>get flash</a> to see this player.</div>
</body>
</html>
Below my xml file:
<playlist version="1">
<title>WaterAid Videos</title>
−
<trackList>
−
<track>
<creator>Nilesh</creator>
<title>Agents of Change</title>
−
<location>
http://www.wateraid.org/other/video/agentsofchange.avi
</location>
<meta rel="type">WaterAid</meta>
<duration>6:00</duration>
</track>
−
<track>
<title>WaterAid 25 Years</title>
<location>http://www.wateraid.org/other/video/25years.mp4</location>
<meta rel="type">WaterAid</meta>
<duration>4:00</duration>
</track>
−
<track>
<title>DRTV 2008</title>
<location>http://www.wateraid.org/other/video/drtv2008.avi</location>
<meta rel="type"> WaterAid</meta>
</track>
−
<track>
<title>You Tube Agents of Change</title>
<location>http://www.youtube.com/watch?v=6q9WPXz94LE</location>
<meta rel="type">YouTube</meta>
<duration>6:00</duration>
</track>
−
<track>
<title>You Tube WaterAid 25 Years</title>
<location>http://www.youtube.com/watch?v=qmICp4IEDG8</location>
<meta rel="type">YouTube</meta>
<duration>4:00</duration>
</track>
−
<track>
<title>You Tube DRTV 2008</title>
<location>http://www.youtube.com/watch?v=QxtxtYPIb7E</location>
<meta rel="type">YouTube</meta>
</track>
</trackList>
</playlist>
all my video files ,xml files are in same location in server. I could think of one possibility, may be longtail doesnt support avi or mp4 video files. or something messy in my code. can you please check my above code and help? am stuck

{A} The JW FLV Player is a Flash-based player. The Adobe Flash Player DOES NOT support AVI files. The Adobe Flash Player DOES support H.264 video in the MP4 container.
{B} You are using a v4.5.230 JW FLV Player. http://www.wateraid.org/other/testarea/mediaplayer/player.swf
{C} You are using many v3 player flashvars in your player embedding code. Review the v4 player supported flashvars here http://developer.longtailvideo.com/trac/wiki/FlashVars
{D} Player embedding code for the v4 player.
function CreatePlayer(theFile,go){
var s1 = new SWFObject('http://www.wateraid.org/other/testarea/mediaplayer/player.swf', 'preview', '600', '300', '9.0.124');
s1.addParam('allowscriptaccess', 'always');
s1.addParam('allowfullscreen', 'true');
s1.addVariable('file', theFile);
s1.addVariable('stretching', 'exactfit');
s1.addVariable('shuffle', 'false');
s1.addVariable('playlist.thumbs', 'true');
s1.addVariable('autostart', go);
s1.write('placeholder');
};