Hi guys!
I want to embed an .avi file on my website and I want to do it using windows media player.
Here's the code that I'm currently using:
The problem with it is that it downloads the whole movie file first and then it plays it... I want it to do a "progressive download" meaning it downloads a small chunk first then starts playing it and while the first chunk is playing the 2nd chunk is being downloaded so that the user doesn't have to wait too long.
I'm using some big avi files (50 to 100 mb) so waiting for the whole file to download first isn't an option.
Any ideas on how to do that?
Thanks,
Vlad
I want to embed an .avi file on my website and I want to do it using windows media player.
Here's the code that I'm currently using:
Code:
<OBJECT ID="MediaPlayer" WIDTH="640" HEIGHT="506" CLASSID="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
STANDBY="Loading Windows Media Player components..." TYPE="video/x-msvideo">
<PARAM NAME="FileName" VALUE="video2.avi">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="true">
<EMBED TYPE="application/x-mplayer2" SRC="video2.avi" NAME="MediaPlayer"
WIDTH="640" HEIGHT="506" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="1"> </EMBED>
</OBJECT></noscript></noscript>
The problem with it is that it downloads the whole movie file first and then it plays it... I want it to do a "progressive download" meaning it downloads a small chunk first then starts playing it and while the first chunk is playing the 2nd chunk is being downloaded so that the user doesn't have to wait too long.
I'm using some big avi files (50 to 100 mb) so waiting for the whole file to download first isn't an option.
Any ideas on how to do that?
Thanks,
Vlad





