gprit wrote:What is the best way to do this?
I tried a few different formats and the only one I could get to work with no issue was teh itunes format.
I'd like to add .mp3 and/or .wav formats. I don't want any symbol appearing on the page...just for the music to start when the page is loaded...and loop around.
thanks
Music that loads and can't be turned off will chase many people away.
But if you must, try using an EMBED tag. Place a text box and use Ctrl+T to insert the code.
- Code: Select all
<EMBED src="pathto/yourfile.wav" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="pathto/yourfile.wav"></NOEMBED>
The above is for a .wav file only. They're natively supported by web browsers. The downside, of course, is that the files tend to be huge. Anything over 10 seconds long isn't real practical.
Embedding a MP3 file is possible, but normally requires a player. An not all web servers are set up with the mp3 MIME type to allow playback.
You can try to embed your mp3 files in a similar manner to wav files:
- Code: Select all
<EMBED src="file.mp3" autostart=true hidden=true>
This will work on some servers (depending on the MIME configuration).
For better streaming use a text editor to make a "m3u" file with one line something like this:
http://www.yoursite.com/pathto/yourfile.mp3Save the file as "filename.m3u" and upload it to your site. On your web page, embed the mp3 file like this:
- Code: Select all
<EMBED src="filename.m3u" autostart=true hidden=true>
Chuck