PDA

View Full Version : Hoe Can I Embedd Windows Media Player in Webpage



learning
27-04-2008, 09:04 PM
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="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# 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="http://www.microsoft.com/Windows/MediaPlayer/" src="http://www.xxxxxxxxxxxx.mp3" name="MediaPlayer1" width=280 height=46 autostart=1 showcontrols=1 volume=-300>
</OBJECT>

Speedy Gonzales
27-04-2008, 09:09 PM
Probably something like this (http://www.geekpedia.com/tutorial152_Embedding-Windows-Media-Player-into-a-web-page.html)

learning
27-04-2008, 09:35 PM
Probably something like this (http://www.geekpedia.com/tutorial152_Embedding-Windows-Media-Player-into-a-web-page.html)

Thanks But that does not mention anything on playlist

Speedy Gonzales
27-04-2008, 09:40 PM
Or this ? (http://www.boutell.com/newfaq/creating/playlist.html)

learning
27-04-2008, 09:57 PM
Or this ? (http://www.boutell.com/newfaq/creating/playlist.html)

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

Speedy Gonzales
27-04-2008, 10:06 PM
Have a look on the left-hand side of the page I posted.

This maybe what youre after (http://www.boutell.com/newfaq/creating/songmenu.html)

learning
29-04-2008, 09:41 AM
Have a look on the left-hand side of the page I posted.

This maybe what youre after (http://www.boutell.com/newfaq/creating/songmenu.html)

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>

Speedy Gonzales
29-04-2008, 09:50 AM
Look on that site or do a search in google