I was trying to embed a flash video using javascript in html .
<!DOCTYPE html>
<html>
<head>
<title>Adding a Flash Video</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {
movie:"../video/puppy.flv" };
swfobject.embedSWF("flash/osplayer.swf", "snow", "400", "345", "8.0.0", flashvars, params);
</script>
</head>
<body>
<div id="snow">
<p>A video of a puppy playing in the snow</p>
</div>
</body>
</html>
I had a doubt in the directory structure.
The directory structure is like the photo attached.
In line no. 9 the path is like movie:"../video/puppy.flv" but the video is stored in video folder as shown in the image. So ideally the path should be movie:"/video/puppy.flv". But when i change the path to movie:"../video/puppy.flv" the video not plays.
movie:"video/puppy.flv"? Also, which file is this code contained in? (ie it's location)