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.
REPLY))
Flash.
REPLY))
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.