Embedding Audio in forum Introduction

Embedding Audio in forum Introduction

by Barb Hall -
Number of replies: 1

Hi everyone,

I have successfully embedded an mp3 file in a web page in my moodle course using the following snippet of code:

<div style="text-align: center;">
<object height="27" width="380" data="http://www.google.com/reader/ui/3523697345-audio-player.swf" type="application/x-shockwave-flash"> <param name="src" value="http://www.google.com/reader/ui/3523697345-audio-player.swf" />

<param name="FlashVars" value="audioUrl=

" />

<audio src="http://moodle.barbhall.com/PianoTechnology/file.php/2/objective41b.mp3" controls="true" preload="none" style="width: 380px;"></audio>
</object></div>

I'm doing this so that students can view the forum from an iphone or ipad, and from their computers. I do realize that moodle has a filter for mp3 files, but unforunately they don't display on an iphone, so I've decided to embed a player instead with html5 fallback.

Even though this displays correctly in the actual course material, it doesn't display in the forum introduction.  When I switch to html code in the forum introduction box, the above snippet is there, and the player is displayed when html mode is switched off, but when I click save and display, the player  doesn't display.

Do I need to enable something somewhere in administration to allow this?  I'm using Moodle 1.9.9

Thanks,

Barb

Average of ratings: Useful (1)
In reply to Barb Hall

Re: Embedding Audio in forum Introduction

by Deb Burdick-Hinton -

Darn Barb. I have the same question and bummed you did not get a reply. I have no problem embedding in all sorts of other tools, activities and resources  but the forum intro has problems. The funny thing is that it displays just fine in the preview screen after I embed in the forum intro but when I view from the home page link only a black screen appears.  Can someone help??????