Click to See Complete Forum and Search --> : play list help please


xtecltd
12-26-2005, 08:11 AM
i use

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="290" height="45" type="application/x-oleobject" >
<param name="AutoStart" value="1" />
<param name="AutoRewind" value="1" />
<param name="URL" value="song url hear" />
<param name="Mute" value="0" />
<param name="PlayCount" value="1" /> <!-- 0 is continuous when used with AutoStart/AutoRewind -->
<param name="SendOpenStateChangeEvents" value="1" />
<param name="SendWarningEvents" value="1" />
<param name="SendErrorEvents" value="1" />
<param name="SendPlayStateChangeEvents" value="1" />
<param name="ShowCaptioning" value="1" />
<param name="ShowControls" value="1" />
<param name="ShowAudioControls" value="1" />
<param name="ShowStatusBar" value="1" />
<param name="ShowTracker" value="1" />
<embed pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2" src="?????" autostart="1" loop="true" width="290" height="40" />

</object>


this code works fine but how do i go from hear to play more then 1 song

thank you for your time

_Aerospace_Eng_
12-29-2005, 06:24 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>&nbsp;</title>
<style type="text/css">
html, body {
margin:0;
padding:0;
}
</style>
</head>

<body>
<object width="200" height="200"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
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="url" value="http://urltoplaylist.m3u">
<param name="uiMode" value="none">
<param name="autoStart" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="0" uimode="none" width="200" height="200"
src="http://urltoplaylist.m3u" autostart="true" loop="true"></embed>
</object>
</body>
</html>
Put the above in that page. Note the src and url values are http://urltoplaylist.m3u
Next is to actually make that playlist.
1. Open notepad.exe or notepad (same program) then type this as your first line
#EXTM3U
2. On the next line type this, it will be what you want displayed on the status bar of the player if you have it enabled
#EXTINF:Artist of Song Goes Here - Title of Song Goes Here
3. On the line after that type this, it will be the exact location relative to your root directory on your server for compatibility put the exact location of the file
http://locationtosongfilehere.mp3
4. You have now made a playlist for one song, to have multiple songs repeat steps 2-3 for the other songs, for example a playlist with 5 songs would look like this
#EXTM3U
#EXTINF:Artist of Song 1 Goes Here - Title of Song 1 Goes Here
http://locationtosongfile1here.mp3
#EXTINF:Artist of Song 2 Goes Here - Title of Song 2 Goes Here
http://locationtosongfile2here.mp3
#EXTINF:Artist of Song 3 Goes Here - Title of Song 3 Goes Here
http://locationtosongfile3here.mp3
#EXTINF:Artist of Song 4 Goes Here - Title of Song 4 Goes Here
http://locationtosongfile4here.mp3
#EXTINF:Artist of Song 5 Goes Here - Title of Song 5 Goes Here
http://locationtosongfile5here.mp3
5. Now that you know what it looks like, you have to save it, click on the File menu in notepad, then click on save as, to the left of the save and cancel buttons you will see 3 boxes, the first box is the filename that you want to save it as, the second box is the file type (change this to all types), and the last one is encoding type, DO NOT change this box. In the file name box after you have changed the second box to all types, you should type in this
yourplaylistfilename.m3u
Find the location you want to save your file at, this will be needed later so you can upload your playlist file, once you find your location to save the file, click save, you will now see a file that has the name u gave it this will be your playlist.[/code]