PDA

View Full Version : media player


Peter
01-27-2005, 06:44 PM
Does anyone know how to put a windows media player block on a html site so u click play and it plays music?

thanks :P

shwaza
01-27-2005, 08:16 PM
Well, do you need to user windows media player? Because the default thing it uses is quicktime, and if you just add in the music file, it will automatically show up as a little bar with the music controls. If you wanna see what that looks like... go here >> http://shwaza.dynu.ca/ghost-killa/music/theme.wav

Silver
01-28-2005, 10:17 AM
Um.... lets see. Yeah. I think I can help you a bit here.
Wherever you want that embed, just add this code in that HTML file.

For realplayer plugin to play music-
<object width="320" height="240"
classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
<param name="controls" value="ImageWindow" />
<param name="autostart" value="true" />
<param name="src" value="The_name_of_song.ext" />
</object>
For windows media player plugin try this-
<OBJECT
ID="mediaPlayer"
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">
<PARAM NAME="fileName" VALUE="The_file_name.ext">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
</OBJECT>
For Quicktime plugin-

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="160"HEIGHT="144"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="sample.mov">
<PARAM name="AUTOPLAY" VALUE="true">
<PARAM name="CONTROLLER" VALUE="false">
<EMBED SRC="sample.mov" WIDTH="160" HEIGHT="144" AUTOPLAY="true" CONTROLLER="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>


Thats hopefully what you were looking for.

Peter
01-28-2005, 08:33 PM
thankyou m8, Alot of help! cheers bud!