I'm getting desperate here. All I want to do is to place an MPEG video on a website. The website is an ASP.Net 2.0 site with C#. The goal is to have the video play automatically once the website loads, however I would like to be able to set a buffer of about 10 seconds before it does. The video is large and will skip otherwise. The closest thing I found to help is: http://www.mcse.ms/message1532898.html
. However, even after reading those, I can't even get his example to work. I have the following code:
Sample Video Stream 1:<br>
<OBJECT ID="MediaPlayer1" width="182" height="160" CLASSID="CLSID:6BF52A52-39
<PARAM name="autoStart" value="True">
<PARAM name="uiMode" value="none">
<PARAM name="AnimationAtStart" value="True">
<PARAM name="URL" value="Media/value.mpg">
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">
function StartMeUp ()
ringTime = 10000;
MediaPlayer1.URL = "Media/value.mpg";
function ShutMeDown ()
I actually want it to auto-load and not have buttons, but I'm just trying to get control of the videos, so I'm starting with buttons.
Another place I'm looking is the windows media player object model reference: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/controlreference.asp
I've posted a few times on this subject and I have yet to receive a reply. This time, I at least have some code and a starting point.
To review: The goal is to automatically play an MPEG video on a web page with WMP, however because of its size, it needs to buffer load.
Any help is greatly appreciated. Thanks.