Date: April 30th, 2010
Cate: ICT
Tags:

Embedding a MP3 in a Drupal Site

So, after many many hours of searching the web to find a way to embed a MP3 player in a Drupal content item, I have finally found the answer. It’s much more straight forward than I thought as it doesn’t rely on Modules at all.

You simply add the following text to your content item:

<object type="application/x-shockwave-flash">
<param name="movie" value="/modules/audio/players/1pixelout.swf" />
<param name="wmode" value="transparent" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<embed src="/modules/audio/players/1pixelout.swf" flashvars="soundFile=http://yourfile.mp3" width="290" height="24" />
</embed></object>

You will need to have your content format set to “Full HTML” to do this (or “PHP code” I suppose).

I actually found the answer here and thought it was worth reproducing.

2 Comments

    Flash. :(

    1F

  1. HammyHammy  
    May 31st, 2010
    REPLY))

  2. officaltrash, the non-flash alternative is to use the

    The only problem with that is that there are a lot of browsers out there that don’t support HTML5 yet.

    2F

Leave a Reply

 Name

 Mail

 Home

[Name and Mail is required. Mail won't be published.]