Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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