I am trying to play a video from video path that I have in database. If I hardcode the value in the following method then I am able to play the video. But m not sure how to play it dynamically directly from the database.
<object id="Object1" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param name="url" value="C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Videos\tum-ho.mp4" / >
<param name="http://" />
<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 autostart="0" filename="" height="379"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
showcontrols="1" showdisplay="1" showstatusbar="1"
src="C:\Users\3embed\Documents\Visual Studio 2010\Projects\HeritageWeb\HeritageWeb\Videos\tum-ho.mp4" type="application/x-mplayer2" width="424"></embed>
</embed>
How can we modify ” ” get values from database?
Make these changes to your
<embed>object addrunat="server"to make it available to codebehind and give it anID="Video". Now you can change its attributes as per need.Set the src in codebehind like this.