Skip to main content
Participant
October 7, 2011
Answered

How do I insert mp3 audio files in Dreamweaver CS5?

  • October 7, 2011
  • 1 reply
  • 33283 views

How do I insert mp3 audio files in Dreamweaver CS5?

Also, do I have to take out all the spaces in the file name?

Thanks!

    This topic has been closed for replies.
    Correct answer Nancy OShea

    To Nancy OShea

    Sorry if this post was attempted already before and duplicates my first post (which now seems absent).

    I tried to paste your code into my DW 5.5 webpage, but this does not work.

    Here is my webpage start up, which sends viewers to a second "page-window" for each mp3.

    http://harmoniouspalette.com/NU~U~U~Ubabes.html

    (I see now the title needs fixing , etc...)

    I tried the linked html inside my Mac where it does not work, while the current version plays both on web and on my Mac.

    Any insights to make this work would be appreciated.  Thanks so much.


    Copy & paste the correct code below into a new, blank document and save.

    <!doctype html>

    <html lang="en">

    <head>

    <meta charset="utf-8">

    <title>HTML5 Audio Demo</title>

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    </head>

    <body>

    <h1>Title</h1>

    <audio src="http://harmoniouspalette.com/BeginnerNUs.mp3" title="Beginner NUs" controls ></audio>

    <h1>Title</h1>

    <audio controls src="http://harmoniouspalette.com/ChildVoice-NU-U-U-U.mp3" title="Child Voice NU-U-U-U">

    </audio>

    </body>

    </html>

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    October 7, 2011

    It's a good practice to remove  spaces from all your site folder and filenames.

    To answer your question about MP3 audio, how many files do you have?  Do you need a player that supports multiple audio files?  Or just a play button?

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

    Nancy O'Shea— Product User & Community Expert
    MargmeyrAuthor
    Participant
    October 8, 2011

    Thanks for your reply!

    I have 4-5 mp3 files.

    I discovered how to add a plug-in from the Media:Plugin in Dreamweaver.

    But now I want to change the audio clips to NOT start automatically when the page opens.

    I want the embedded file to be OFF, and have the user be able to Play it when they want.

    Any help would be appreciated!

    October 8, 2011

    You can set the "autostart" to false in Parameters, or in code

    <embed src="files/song.mp3" width="640" height="32" hidden="false" autostart="false"></embed>

    A word of caution. Unless you have arranged to track plays and pay royalties on MP3s and have your paperwork all together for the RIAA, ASCAP and others, you cannot have any audio file on a public website that plays longer than 3o seconds. The only excpetions to this are the few songs that are in the public domain, and songs for which you hold the exclusive copyright, meaning you wrote them and recorded them. Fines can go as high as $100,000 per play per song if they come after you.