Home / Web Hosting / How to create a music playlist for your website

How to create a music playlist for your website

Mp3s in iTunes
Question: How do I stream Mp3s to my website visitors using an m3u playlist?

Answer: Setting up an m3u playlist is very easy to do. Once you have it setup, visitors will be able to listen to your site’s Mp3s either by opening the m3u playlist in a music player or by playing it directly in their browsers (if you embed it in your code).

To begin, do the following:

1. Create an empty text file with .m3u extension (i.e. playlist.m3u)
2. Add a list of the mp3 files with the relative path on your server:

/music/song1.mp3
/music/song2.mp3

3. Add comments proceeded with the #. (optional)

Here is an example:

# Reaching for the Hashmarks by Hashy Hash
/music/reaching.mp3
# Hashmarks for Breakfast by Hashy Hash
/music/hashmarks.mp3

Tomorrow, I will explain how to embed the code in your website.

Check Also

servers

Importance of web hosting to business

The world of business is very ruthless and unfair in some cases. It is a …

Powered by Namesco
© Copyright InternetBlog.Org.Uk 2024, All Rights Reserved