how start playing mediaplayer on page load

Posted by Amritha444 under ASP.NET on 9/23/2011 | Points: 10 | Views : 1217 | Status : [Member] | Replies : 0
hi all

Iam doing online radio.i want specific viedo which is feteched from database automatically run in the pageload.i use code for player

<object id="VIDEO" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="Player1"
<param name="URL" src="~/AudioandImage/Aud_517_video3.wmv">
<param name="http://path_to_the_video">
<param name="AutoStart" value="1">
<param name="ShowControls" value="1">
<param name="ShowStatusBar" value="1">
<param name="ShowDisplay" value="1">
<param name="stretchToFit" value="1">

<embed runat="Server" id="embed1" type="application/x-mplayer2" loop=2


width="424" height="68"

autostart="1" showcontrols="1" showstatusbar="1"> </embed>

pageload code
<script language="javascript">
window.onload = function() {

player1 = document.getElementById("VIDEO");
//document.getElementById('VIDEO').URL = "~/audio/Aud_517_video3.wmv";
this function works..but it didnt take default path to run..
or otherwise suggest a method to run a viedo when open page from database

Thanks in Advance


(No response found.)

Login to post response