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>