![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| MK PitStop Member | You may already know how to add music to your website, but do you know how to create a music playlist? A music playlist is simply a list of songs. By using a playlist, your music player can play many songs one after the other. In other words, when the first song in your music playlist is finished, the second song will start playing. Then when that song is finished, the next song will play etc. Here's an example. To add a music playlist to your website you need to do 2 things: Create a m3u file (your music playlist file) Create your HTML file with your music code (this plays the music on the m3u file) Step 1 - Create a m3u File A m3u file is a file that contains a list of songs. Follow these steps to create your m3u file (i.e. your playlist file): Create a text file Add a list of the mp3 files you want on your playlist. This can be the full path to the file or a relative path. Place each mp3 file name on a new line Add any comments by preceeding them with a hash (#) symbol (this step is optional) Save the file with a .m3u extension. For example, call it music_playlist.m3u There it is - your music playlist file! Example m3u File Below is an example of an m3u file: #This is my m3u file - it contains a list of songs /music/title.mp3 /music/good_enough.mp3 /music/bonus.mp3 Now all you need to do is add your playlist to your music code. Step 2 - Add Your Playlist to your Music Code Place the following code within your HTML file and change the values to suit: Example Music Code <embed name="music_playlist" src="music_playlist.m3u" width="300" height="90" loop="false" hidden="false" autostart="true"> </embed> If you've ever added music to your website, you are probably familiar with this code. The only difference between this code and any other (non-playlist) code, is that in this code, the value of the src attribute (i.e. your source file) is your playlist file. If you weren't using a playlist, this source file would simply be a single .mp3 file or a single .wav file or similar. | ||
| | |
| Featured Websites | ||||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Announching Updated Playlist Features | Mike Brannigan [MSFT] | Console Subjects | 4 | 06-26-2007 2:10 PM |
| Sony CDX-MP40 Playlist Help | peakie | Car audio | 1 | 06-17-2007 7:44 PM |
| Playlist and Clarion DXZ838 | hood | Car audio | 2 | 06-17-2007 7:31 PM |
| Featured Websites | ||||
|