How to put videos on aspx page
Hi,
I m a novice in .NET and designing a website using visual studio 2005. For many days i m trying to put videos on aspx page, i m using the follwing code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object width="320" height="290"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
id="mediaplayer1"><param name="Filename" value="Campusfinal.mpg"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"><embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="320" height="290" src="C:\Documents and Settings\Abhishek\My Documents\Downloads\Video\Campusfinal.mpg"
filename="Campusfinal.mpg" autostart="True"
showcontrols="True" showstatusbar="False"
showdisplay="False" autorewind="True"></embed></object>
I m using windows media player 11. When putting this code onto a html page, i m getting problems such as:
1) When clicked on the play button, it starts connecting to the internet, if got connected, it starts downloading the file( campusfinal.mpg) from my harddisk and creates the same file with different name(campusfinal_1.mpg), after that windows media player opens separately and video is played.
This is extremely annoying as i cant be connected to internet everytime.
i want
a) my video to be played within the browser and it should not use internet for this purpose.
Please help and tell step by step process to how to put videos on aspx page and what are the codes required.
|