Gespeichert von ras am
This is a very simple way how to embed an audio file in your drupal page. There is no need to embed javascript or a css class. However, you should be able to edit HTML or have the "embed media" option enabled in your CKeditor (to paste the code below).
- Convert your file to ogg format (e.g. use Audacity), avoid mp3, as they do not work on all browsers.
- Upload file by sftp or IMCE to your drupal web site.
- Insert code
<audio id="player" src="/sites/default/files/media/FredaMeissnerBlau2013.ogg"></audio> <div> <button onclick="document.getElementById('player').play()">Play</button> <button onclick="document.getElementById('player').pause()">Pause</button> </div>
See a demo here.
If you use TinyMCE editor, you may consider its media plugin.