We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
 
2,675 Tutorials

How to add Flash to your website

Add photos, videos and MP3s to your site

Embed a music player in your site

1. If you’d like to add an MP3 player to your website, you can download one of the customisable players from PremiumBeat – we’re using the multitrack player. Unzip the files on to your web server, then locate the file sampleEmbedCode.html.

Step 1

Step 1

2. Copy and paste this code into a web page to embed the PremiumBeat player into a hypertext markup language (HTML) file. Opening the source code will show two variables: one sets music to play automatically; the other specifies a playlist.

Step 2

Step 2

3. After uploading music files to your server, you’ll need to modify the playlist. Open playlist.xml and change the sample code between each tag to point to your own music. Save the XML file and, if necessary, rename it (sometimes the sample HTML works better when pointing to a different file name).

Step 3

Step 3

4. Open the web page with the embedded HTML code for the PremiumBeat player. This will display a compact MP3 player, which you can use to skip between tracks. For different versions of the same player, such as a mini player or single-track release, check out the PremiumBeat site.

Step 4

Step 4

>>NEXT PAGE: Add Flash video to your website

IDG UK Sites

Amazon 3D smartphone release date, price and spec: The hologram phone?

IDG UK Sites

iPhone 5s review: why the iPhone 5s is still the best phone you can buy in 2014

IDG UK Sites

Passwords don't work: here's four ways to fix them

IDG UK Sites

Developers get access to more Sony camera features