Forum Moderators: mack
There are easy ways to embed media into the pages..
First off if you are planning to do it in a way that the music will play when a surfer goes to your site, please please don't do it. It is most often just a plane old bad idea to do. Most people are listening to music (if their at home) and when yours come on as well they have a musical mess.. or they are at a quite work place and don't want to have that sudden unexpected music play and announce to the rest of the office that they are surfin the web instead of working.. Not good..
That said..
Doing a google search for "embed mp3 into web page" should turn up code that you could use.
Template code:
To stream:
<a title="Stream this clip." href="name.m3u" type="audio/x-mpegurl">Descriptive text</a>
To download:
<a title="Download MP3 " href="name.mp3" type="audio/mpeg">Descriptive text</a>
[edited by: SteveWh at 11:07 pm (utc) on April 27, 2007]
My goals were:
- NOT have the browser launch another application
- NOT take the user off the page (or block the page)
- NOT have the audio start unless the user intitiated it.
- ALLOW the user to stop, rewind clip, or adjust volume
I recently ran across a nice little utility to make adding audio files to a page: search for "wimpy player"... and more specifically the "wimpy button". It works great.