C
Cogito
When I use the following code to play a radio station it works well
and the station plays as soon as the page loads.
But, I want the page loads without automatically playing and to let
the user starts the play by pressing the "Play" button.
However, when I change the parameter
<PARAM NAME="AutoStart" Value="true">
to
<PARAM NAME="AutoStart" Value="false">
it does not work.
What is the problem or what else needs to be done?
Here is the code:
<html>
<body bgcolor="#333367" text="#660000" link="#660000" vlink="#660000"
alink="#990000" topmargin="0" marginheight="0" leftmargin="0"
marginwidth="0">
<div align="center">
<OBJECT ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
width="153" height="53" style="background-color:000000"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName"
VALUE="http://www.abc.net.au/streaming/newsradio.asx">
<PARAM NAME="TransparentAtStart" Value="true">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="false">
<PARAM NAME="ShowStatusBar" Value="true">
<PARAM NAME="ShowControls" Value="true">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="false">
<PARAM NAME="ShowAudioControls" Value="true">
<PARAM NAME="ShowPositionControls" Value="false">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"src=""
Name="MediaPlayer"
width="153" height="53"
style="background-color:000000">
</embed>
</OBJECT>
</div>
</body>
</html>
and the station plays as soon as the page loads.
But, I want the page loads without automatically playing and to let
the user starts the play by pressing the "Play" button.
However, when I change the parameter
<PARAM NAME="AutoStart" Value="true">
to
<PARAM NAME="AutoStart" Value="false">
it does not work.
What is the problem or what else needs to be done?
Here is the code:
<html>
<body bgcolor="#333367" text="#660000" link="#660000" vlink="#660000"
alink="#990000" topmargin="0" marginheight="0" leftmargin="0"
marginwidth="0">
<div align="center">
<OBJECT ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
width="153" height="53" style="background-color:000000"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName"
VALUE="http://www.abc.net.au/streaming/newsradio.asx">
<PARAM NAME="TransparentAtStart" Value="true">
<PARAM NAME="AutoStart" Value="true">
<PARAM NAME="AnimationatStart" Value="false">
<PARAM NAME="ShowStatusBar" Value="true">
<PARAM NAME="ShowControls" Value="true">
<PARAM NAME="autoSize" Value="false">
<PARAM NAME="displaySize" Value="false">
<PARAM NAME="ShowAudioControls" Value="true">
<PARAM NAME="ShowPositionControls" Value="false">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"src=""
Name="MediaPlayer"
width="153" height="53"
style="background-color:000000">
</embed>
</OBJECT>
</div>
</body>
</html>