Forum Home
Press F1
 
Thread ID: 89315 2008-04-27 09:04:00 Hoe Can I Embedd Windows Media Player in Webpage learning (5137) Press F1
Post ID Timestamp Content User
663089 2008-04-27 09:04:00 I want to embedd Windows media player onto my profile - social networking site (similar to myspace) and i want to create a playlist of songs .

I currently have about 10 songs stored on a public File server to which i can link the songs in WMP on my webpage .

Below is the code for a single song that i play . I got the code from google but couldnt find one that shows adding multiple songs . The xxxx just represent file url .

How can i modify it to create a playlist? Is it just a matter od adding more urls in the code?

Or can someone give me a link for tutorial on embedding a WMP playlist in webpage .

Also this is not important - but it would be nice to know how to also display in the embedded WMP on webpage the coloful visualisations i . e those fancy graphics that play along with the song which you normally see when u play a song on standalone WMP


Cheers for any help




<OBJECT ID="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE=" . microsoft . com/activex/controls/mplayer/en/nsmp2inf . cab#" target="_blank">activex . microsoft . com Version=5,1,52,701" STANDBY="Loading Microsoft Windows® Media Player components . . . " TYPE="application/x-oleobject" width="280" height="46">
<param name="fileName" value="http://www . xxxxxxxx . mp3">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="false">
<param name="showControls" value="true">
<param name="Volume" value="-300">
<embed type="application/x-mplayer2" pluginspage=" . microsoft . com/Windows/MediaPlayer/"" target="_blank">www . microsoft . com src="http://www . xxxxxxxxxxxx . mp3" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>
learning (5137)
663090 2008-04-27 09:09:00 Probably something like this (www.geekpedia.com) Speedy Gonzales (78)
663091 2008-04-27 09:35:00 Probably something like this (www.geekpedia.com)

Thanks But that does not mention anything on playlist
learning (5137)
663092 2008-04-27 09:40:00 Or this ? (www.boutell.com) Speedy Gonzales (78)
663093 2008-04-27 09:57:00 Or this ? (www.boutell.com)

Thanks Heapsssss Dude!! :clap

I got my playlist playin now!!!

Only problem, i cant display the tracks that are playing i.e just the controls show for WMP pluggin. I can move forward to next song by clicking on Forward button but the songs in the play list are not displayed as they play.

I think this maybe a limitation where i cant display but then again i maybe wrong.

If anyone knows how to display songs that are playing in the WMP pluggin, please let me know
learning (5137)
663094 2008-04-27 10:06:00 Have a look on the left-hand side of the page I posted.

This maybe what youre after (www.boutell.com)
Speedy Gonzales (78)
663095 2008-04-28 21:41:00 Have a look on the left-hand side of the page I posted.

This maybe what youre after (www.boutell.com)

OK i got the songs playing now and status bar displaying the song name - how can i show visulations while the song is playing?

Currently i have a black screen showing

Thanks

for any help

below is the code i used. Is it a matter of adding another parameter to display visualisations?


<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="xxxxxxxxxxxx">
<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="xxxxxxxxxxxx" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
learning (5137)
663096 2008-04-28 21:50:00 Look on that site or do a search in google Speedy Gonzales (78)
1