Spencer
05-30-2009, 02:13 AM
I was having the same problem as the one mentioned at the following link but now the error isn't coming up after I tried to place the two tags in the source with javascript + the "url" variable as the value for "FileName" and "src". http://forums.streamsolutions.co.uk/showthread.php?p=26075 All I want to do is set a variable called "url" to the path of the media I want to play. Then have Media Players parameter FileName = url; This is my code. Media Player is not giving me any error messages but the Media Player acts like it has no media to play. Any Ideas? I would really appreciate it .
<head>
<script type="JavaScript">
var otherurl = "L:\Unnamed Site 2\Navigation.wmv";
var url = otherurl;
</script></head>
<body>
<object id="MediaPlayer" width="320" height="240" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Chiswell live video feed is loading...." type="application/x-oleobject">
<script language="JavaScript">
document.write('<param name="FileName" value="'+ url +'" />');
</script>
<param name="autostart" value="1" />
<param name="showcontrols" value="1" />
<script language="javascript">document.write('<embed type="application/x-mplayer2"
src="'+url +'"
width="320"
height="240"
autostart="1"
showcontrols="1"> </embed>');</script>
</object>
</body>
<head>
<script type="JavaScript">
var otherurl = "L:\Unnamed Site 2\Navigation.wmv";
var url = otherurl;
</script></head>
<body>
<object id="MediaPlayer" width="320" height="240" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Chiswell live video feed is loading...." type="application/x-oleobject">
<script language="JavaScript">
document.write('<param name="FileName" value="'+ url +'" />');
</script>
<param name="autostart" value="1" />
<param name="showcontrols" value="1" />
<script language="javascript">document.write('<embed type="application/x-mplayer2"
src="'+url +'"
width="320"
height="240"
autostart="1"
showcontrols="1"> </embed>');</script>
</object>
</body>