Detailed parameters can be found in msdn
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/wmplay/matrix SDK/settingsobject. asp
<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en">
<HTML>
<Head>
<Link href = "style/style.css" rel = "stylesheet" type = "text/CSS">
<Script language = "JavaScript">
VaR state;
// Initialization
Function playerinit ()
{
Player. url = "mp3.m3u ";
Player. settings. autostart = false;
}
// Play
Function play ()
{
If (player. Controls. isavailable ('play '))
{
Player. Controls. Play ();
State = setinterval ("updatetime ()", 1000 );
Playerinfo. innerhtml = "playing ";
}
}
// Pause
Function pause ()
{
If (player. Controls. isavailable ('pause '))
{
Player. Controls. Pause ();
Clearinterval (State );
Playerinfo. innerhtml = "paused ";
}
}
// Stop
Function stop ()
{
If (player. Controls. isavailable ('stop '))
{
Player. Controls. Stop ();
Clearinterval (State );
Playerinfo. innerhtml = "stop ";
}
}
// Beginning
Function previous ()
{
If (player. Controls. isavailable ('previous '))
{
Player. Controls. Previous ();
Playerinfo. innerhtml = "previous ";
}
}
// The Last One
Function next ()
{
If (player. Controls. isavailable ('Next '))
{
Player. Controls. Next ();
Playerinfo. innerhtml = "Next ";
}
}
//?
Function step ()
{
If (player. Controls. isavailable ('step '))
Player. Controls. Step (1 );
}
// Volume-
Function voldown ()
{
If (player. settings. Volume <5)
{
Player. settings. volume = 0;
Playerinfo. innerhtml = "0 ";
}
Else
{
Player. settings. Volume-= 5;
Playerinfo. innerhtml = player. settings. volume;
}
}
// Volume +
Function volup ()
{
If (player. settings. volume> 95)
{
Player. settings. volume = 100;
Playerinfo. innerhtml = "100 ";
}
Else
{
Player. settings. Volume + = 5;
Playerinfo. innerhtml = player. settings. volume;
}
}
// Mute
Function mute ()
{
Player. settings. Mute =! Player. settings. Mute;
}
// Audio channel
Function balance ()
{
Switch (player. settings. Balance)
{
Case 0:
Player. settings. Balance = 100;
Playerinfo. innerhtml = 'left channels ';
Break;
Case 100:
Player. settings. Balance =-100;
Playerinfo. innerhtml = 'right channel ';
Break;
Cases-100:
Player. settings. Balance = 0;
Playerinfo. innerhtml = 'full channel ';
Break;
Default:
Player. settings. Balance = 0;
Playerinfo. innerhtml = 'full channel ';
Break;
}
}
// Update Time
Function updatetime ()
{
Playerinfo. innerhtml = player. Controls. currentpositionstring + "|" + player. currentmedia. durationstring;
}
</SCRIPT>
</Head>
<Body onload = "playerinit ();">
& Lt; table width = "300" & gt;
<Tr>
<TD> <Object ID = "Player" classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6" type = "application/X-oleobject" width = "300" Height = "60">
<Param name = "autostart" value = "false">
<Param name = "balance" value = "0">
<Param name = "currentposition" value = "0">
<Param name = "currentmarker" value = "0">
<Param name = "enablecontextmenu" value = "true">
<Param name = "enableerrordialogs" value = "false">
<Param name = "enabled" value = "true">
<Param name = "fullscreen" value = "false">
<Param name = "invokeurls" value = "false">
<Param name = "mute" value = "true">
<Param name = "playcount" value = "1">
<Param name = "rate" value = "1">
<Param name = "uimode" value = "NONE">
<Param name = "volume" value = "100">
</Object> </TD>
</Tr>
<Tr>
<TD> <span id = "playerinfo"> </span> </TD>
</Tr>
<Tr>
<TD>
<Div align = "center">
<Input type = "button" class = "but11" onmouseover = This. classname = "but12"; onmouseout = This. classname = "but11"; name = "previous" Title = "previous" onclick = "previous ();">
<Input type = "button" class = "but21" onmouseover = This. classname = "but22"; onmouseout = This. classname = "but21"; name = "play" Title = "play" onclick = "Play ();">
<Input type = "button" class = "but31" onmouseover = This. classname = "but32"; onmouseout = This. classname = "but31"; name = "pause" Title = "pause" onclick = "Pause ();">
<Input type = "button" class = "but41" onmouseover = This. classname = "but42"; onmouseout = This. classname = "but41"; name = "stop" Title = "stop" onclick = "Stop ();">
<Input type = "button" class = "but51" onmouseover = This. classname = "but52"; onmouseout = This. classname = "but51"; name = "Next" Title = "Next" onclick = "next ();">
<Input type = "button" class = "but61" onmouseover = This. classname = "but62"; onmouseout = This. classname = "but61"; name = "voldown" Title = "volume-" onclick = "voldown ();">
<Input type = "button" class = "but61" onmouseover = This. classname = "but62"; onmouseout = This. classname = "but61"; name = "volup" Title = "volume +" onclick = "volup ();">
<Input type = "button" class = "but61" onmouseover = This. classname = "but62"; onmouseout = This. classname = "but61"; name = "mute" Title = "mute" onclick = "mute ();">
<Input type = "button" class = "but61" onmouseover = This. classname = "but62"; onmouseout = This. classname = "but61"; name = "balance" Title = "" onclick = "balance ();">
</Div>
</TD>
</Tr>
</Table>
<Script language = "JavaScript" for = player event = playstatechange (newstate)>
Switch (newstate ){
Case 1:
Playerinfo. innerhtml = "stop ";
Break;
Case 2:
Playerinfo. innerhtml = "paused ";
Break;
Case 3:
Playerinfo. innerhtml = "playing ";
Break;
Case 4:
Playerinfo. innerhtml = "4 ";
Break;
Case 5:
Playerinfo. innerhtml = "5 ";
Break;
Case 6:
Playerinfo. innerhtml = "buffering ...";
Break;
Case 7:
Playerinfo. innerhtml = "7 ";
Break;
Case 8:
Playerinfo. innerhtml = "8 ";
Break;
Case 9:
Playerinfo. innerhtml = "Connecting ...";
Break;
Case 10:
Playerinfo. innerhtml = "ready. Welcome to <a href = 'HTTP: // www.knowsky.com '> http://www.knowsky.com </a> ";
Break;
Case 11:
Playerinfo. innerhtml = "11 ";
Break;
Default:
Playerinfo. innerhtml = "";
}
</SCRIPT>
</Body>
</Html>