Click here to Skip to main content
15,887,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

ASP.NET
 <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
 
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
 
width="424" height="68" 
 
 autostart="1" showcontrols="1" showstatusbar="1"> </embed>
                    </object>

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

                           player1 = document.getElementById("VIDEO");
                           //document.getElementById('VIDEO').URL = "~/audio/Aud_517_video3.wmv";
                       };
</script>

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
Amrutha
Posted
Updated 22-Sep-11 23:04pm
v2

1 solution

Simply Create a Table in Db Paste the Object code in that Field, Load the in the Page Load for any Label
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900