Results 1 to 7 of 7

Thread: Adding music to Webpage

  1. #1
    Banned
    Join Date
    Sep 2003
    Posts
    31

    Adding music to Webpage

    Hey i'm currently building my first web page.
    And i've been to many sites were there is music playing
    I was wondering how i would go about getting my site to play music as well?
    Is there a special source code needed?
    Or can i just upload the file from my computer?
    If that is the case what sort of file does it need to be?
    As i have media player version 9
    I do have this program called Acid pro 4.0
    or do i need to go and purchase a certain program?
    Any ideas would be much appreciated?
    cheers
    cyru5_nuk3

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    101
    Usually what you want to do is use a midi as your sound file so that everyone can hear it since a big file would make it unbearable to wait to hear it. IE 56k users or if your server is slow. People like doing things with their webpages but don't think this is cool because a lot of times it is not. It turns out to be a hassle to wait for your page to load when you have a lot of extra stuff going on. To recap unless your site is based on music I would advise against this. If you really want to use music I recommend a midi that is small.

  3. #3
    Banned
    Join Date
    Sep 2003
    Posts
    31
    Ok if it's going to be harder then thought, I think that i will give it a miss.
    It sounded like a nice idea, but yeah there are a few pages that take forever to appear.
    I just thought it might be because of all the pics that they had, but i wa wrong!
    All well back to the drawing board so to speak.
    cheers

  4. #4
    Member
    Join Date
    Feb 2002
    Posts
    84
    Here you are a little piece of HTML with the code for implementing some music or sounds.
    This is some basic code and you may cutomize it to your needs.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <EMBED SRC=****.mp3 AUTOSTART=true WIDTH=144 HEIGHT=60 LOOP=1 HIDDEN=true>

    </body>
    </html>
    [shadow]OpenGL rules the game[/shadow]http://www.AntiOnline.com/sig.php?imageid=499

  5. #5
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    Like gamernewbie, I wouldn't advocate putting any music on your site at all unless your site is somehow related to music. However, if you still want to do this and run into any problems PM me and I'll help you out.

    Bye all.
    Bleh.

  6. #6
    GreekGoddess
    Guest
    I wouldn't embed an MP3 directly into the site. It would cause a serious lag in loading. On one of my sites, I've been playing around with TinyPlayer, which is a little Java player that streams the audio, gives you the option to replay, multiple songs, and stop it completely.

    Here's how I'm using it here. (Note: I've dumped the site for the time being, so it's by far NOT done, the player is skinnable too.)
    http://www.dirtylittlesecrets.net

    It works considerably well...check out the TinyPlayer site here:
    http://www.javazoom.net/applets/tiny...inyplayer.html

    Midis are kinda tacky, so don't go for them at all.

    You might fiind some nice long loops at FlashKit (http://www.flashkit.com) to use on your site as well, doesn't strictly have to be an actual song, plus what I'm doing is seriously illegal, but it's for testing only, so the RIAA can suck my fat toe. So watch when it comes to copyright issues.

  7. #7
    ummmm GG hun that player crashed opera >_<
    if you want to add music I would suggest doing it through Flash (then again i suggest everything should be done through flash )
    but it does mean u can preload it, allow user to select track, control it (play/pause/stop etc) apply fade effects etc without changing source mp3 - and can load it in on the fly so you could use one flash file so no need to embed in file (means easier updating...upload new track with same file name as one to replace and flash will load in new track) etc etc
    plus you can add random track selector - volume controls
    you have complete control over it

    v_Ln

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •