As a developer there are hundred of times that a client or a project needs to have a soundtrack or music as background.
There are many disadvantages playing music in a background on a website and many advantages.
When building a website in flash e.g. a photographer website or a movie – game presentation you have to pick a track and play it on background because it gets you quickly to the mood of the “product”.
But if you are building a website e.g. an eshop, a company website or even a blog i suggest not having background music except if your company is a gym or a design trend.
Working with flash and music is an easy part.
But what is happening working on html.
As you know html and generally server side sites are sending a request to the server and then the server serves the new page. So we have a new page on every link.
This is a major problem with the background music because clicking on a link reloads the player so the music too.
The solution of this problem is to develop your website with ajax methods.
So every request will be loaded on a certain div that is different from the div that holds the player.
With ajax methods you have some limitations on your SEO (there are some libraries out there that fix this problem) but sure better than building your website on flash that is totally seo unfriendly.
So we have the methods and we have decided that we want background music on our website.
What is happening with the music track.
I am sure that many of you out there, you are just grabbing a commercial song and put it on your website.
Well that in NOT LEGAL. Because you do not have the license to use this track on your project.
If you have the license then it’s ok.
Please be aware of the term. Royalty free doesn’t means free. It means that you just paying a single fee and no other royalties.
At http://www.themusicase.com you can find a thousand of tracks that will fit your needs that cost about 30 $ per track for usage as background music on your website (royalty free music silver license)
Now what is happening if you do not want to pay nothing.
Well many royalty free music libraries have sections that offers totally free the license to use their music (or certain tracks) on your website.
That is a good thing because you do not have (as a developer) to do nothing. Neither building an mp3 player not paying any royalties.
And yes you are legal.