PDA

View Full Version : windows media player problems (I B A Newbie)



ImperialSpider
Jun 30th, 2008, 07:38 AM
I am building a website, and want to know how to do the following...

1. Put a windows media player on my website which could play music, or videos from a playlist the user selects from a table (see code below).

2. I would also like the visualization (bars, spikes, circles, etc...) to play like it does in regular windows media player when a song is selected.


Below is the code I have started with...



<html>
<head>
</head>
<title>Media</title>
<body>
<center>

<OBJECT ID="MediaPlayer" WIDTH="450" HEIGHT="400" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="filename.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="filename.wmv" NAME="MediaPlayer"
WIDTH="450" HEIGHT="400" ShowControls="1" ShowStatusBar="1" ShowDisplay="1" autostart="0"> </EMBED>
</OBJECT>

</center>

<center>
<table border="1" width="75&#37;">
<tr>
<td><center>Songs</center></td><td><center>Videos</center></td>
</tr>
<tr>
<td><a href="song1.wav"><center>Song 1</a></center></td> <td><a href="Video_1.wmv"><center>Video 1</a></center></td>
</tr>
<tr>
<td><a href="song2.wav"><center>Song 2</a></center></td> <td><a href="Video_2.wmv"><center>Video 2</a></center></td>
</tr>
<tr>
<td><a href="song3.wav"><center>Song 3</a></center></td> <td><a href="Video_3.wmv"><center>Video 3</a></center></td>
</tr>
<tr>
<td><a href="song4.wav"><center>Song 4</a></center></td> <td><a href="Video_4.wmv"><center>Video 4</a></center></td>
</tr>
<tr>
<td><a href="song5.wav"><center>Song 5</a></center></td> <td><a href="Video_5.wmv"><center>Video 5</a></center></td>
</tr>
</table>

</center>

</body>
</html>


Please, I need help.

Imperial Spider