Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Playing Music on a Basic Html Site


  • Please log in to reply

#1
bennydog

bennydog

    Member

  • Member
  • PipPip
  • 77 posts
can any one help whats the html code so that i can play mutiple .mp3 on my site
(one after the other)
  • 0

Advertisements


#2
lil_cat_luver

lil_cat_luver

    Member

  • Member
  • PipPipPip
  • 296 posts
Do you want the visitor to be able to select which one they want, or just song after song that loops?
  • 0

#3
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts

can any one help whats the html code so that i can play mutiple .mp3 on my site
(one after the other)

View Post


I would strongly not recommend doing this.

For three reasons:

1) MP3's can be huge depending on quality and length. Dial-up users won't be happy, broadband users on monthly caps won't like it and your hosting company won't like it either.
2) Not all browsers will be able to play MP3's depending on the system setup.
3) Visitors might have other music playing and not be too keen to hear yours.

But if you must absolutely insist on doing this, Google the EMBED tag.
  • 0

#4
lil_cat_luver

lil_cat_luver

    Member

  • Member
  • PipPipPip
  • 296 posts
OOh, I didn't know that not all browsers can play mp3's. Thanks for mentioning that
  • 0

#5
bennydog

bennydog

    Member

  • Topic Starter
  • Member
  • PipPip
  • 77 posts
what do you recomend than im trying to run a fansite for my mates band, and they want music playing when the page starts
Mates Site
  • 0

#6
Neil Jones

Neil Jones

    Member 5k

  • Member
  • PipPipPipPipPipPipPipPip
  • 8,476 posts

what do you recomend than im trying to run a fansite for my mates band, and they want music playing when the page starts
Mates Site

View Post


Tell them that they'll get more appreciation if they offer the music as separate downloads (samples or whatever) rather than forcing it on everybody who comes by.

Oh and some people actually switch the option for background music off so they won't hear it either.
  • 0

#7
lil_cat_luver

lil_cat_luver

    Member

  • Member
  • PipPipPip
  • 296 posts
You can embed windows media player, your visitors will have the option of stopping the music.

<embed type="application/x-mplayer2" src="music.mp3"></embed>

See this page http://msdn.microsof...mediaplayer.asp for a detailed explaination
  • 0

#8
webfreebies

webfreebies

    New Member

  • Member
  • Pip
  • 2 posts

can any one help whats the html code so that i can play mutiple .mp3 on my site
(one after the other)

View Post


To do what you're asking, you might want to check these out

http://www.mickwood....streaming.shtml
http://www.developin...et/html/mp3.php

This method will allow you to stream mp3s in a media player, as opposed to forcing the visitor to wait for each song to load before he can hear it. I haven't tried this out myself, so maybe someone else who has can give insight into it.

The only real other option I can think of is to convert the mp3s into streaming SWFs, then loading them into a Flash player. But that, of course, takes more work and a knowledge of Flash and actionscript. A lot of "band sites" tend to go this route, and yes, it actually works. :tazz:

Edited by webfreebies, 09 October 2005 - 07:07 AM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP