Hi,
I saw many articles in the forum where users have been helped so I thought of sending my querry to all of you for your please as I am really fed up with it. So kindly help.
I have wmp embedded on my web page through which I play avi video clips. These clips have to be clicked by the user to play in the embedded wmp. The code mentioned below along with the script works absolutely ok but as soon I load my web page and avi video files on a remote server and run my web page nothing works. No video file plays. Kindly help because I have gone thru web and not found any workable solution.
The code that I am using is as follows:
<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
'type="application/x-oleobject" width="320" height="285">'
'<param name="showControls" value="false">'
'<param name="fileName" value="' media '">'
'<embed type="application/x-mplayer2" width="320" height="285"'
'showcontrols="false" src="' media '"><\/embed><\/object>'
}
</script>
<div id="mediaplayer"></div>
<ul id="menu">
<li><a onclick="play(this.href);return false" href="">Source 1</a></li>
</ul>
In the above script href which is blank includes following http://www.myurlname/afghan.avi
Kindly help
Thanks
Vijay