Computing.Net > Forums > Web Development > Playing MP3 music on website

Playing MP3 music on website

Reply to Message Icon

Original Message
Name: dakkon10
Date: December 14, 2004 at 06:13:22 Pacific
Subject: Playing MP3 music on website
OS: Windows XP
CPU/Ram: 1.66ghz/768mb
Comment:

Hey all. What i'm looking to do is, I have a site on myspace.com some may know of it.
Anyway, i would like to have an mp3 song play on the background of the site when people enter. The only prob i'm haveing is i don't want the people to have to download the entire song before it begins to play, if you understand what i mean, almost like streaming i guess. I can only use HTML or CSS on the site aswell to accomplish this.
Hosting the song isn't a problem, because i am running an apache server off my computer, so i can host my own files. So what the real question is, is how can i accomplish this?


Report Offensive Message For Removal


Response Number 1
Name: zoddy
Date: December 14, 2004 at 15:53:16 Pacific
Reply: (edit)

i dont think its possible to stream mp3. besides, 128k mp3s are impractical to stream.

it would be better to convert it to some streaming format.

A+ Certified


Report Offensive Follow Up For Removal

Response Number 2
Name: drumsnbass2004
Date: December 21, 2004 at 12:07:02 Pacific
Reply: (edit)

This is the code that I have used and it seems to work on most browsers. It will work for more than just .mid too.. such as mp3

<embed src="yourmusicfile.mid" autostart="true" loop="true"
width="2" height="0">
</embed>
<noembed>
<bgsound src="yourmusicfile.mid" loop="infinite">
</noembed>

Nate



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Playing MP3 music on website

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge