Embedded mp3's in quiz no longer working

Embedded mp3's in quiz no longer working

by Linda Falls -
Number of replies: 1
I've successfully embedded mp3's in many quiz questions using this code:


<embed src="http://www.google.com/reader/ui/3523697345-audio-player.swf"
flashvars="audioUrl=...." width="400" height="20" quality="best" type="application/x-
shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>


...which Moodle changes to this:


<div sap-media="EMBED-flash" class="sapReplaceFrame Flash" style="width: 400px ! important; height: 20px ! important;"></div><embed width="400" height="20" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x- shockwave-flash" quality="best" &#010;flashvars="audioUrl=...." src="http://www.google.com/reader/ui/3523697345-audio-player.swf" sap="flash" sap-mode="removed" sap-type="flash" />


...but now the player won't play some of my mp3's. It's strange because that same code is working very well in a lot of other questions - the problem only came up recently and is only happening in questions I'm now trying to edit. Editing breaks the ones that were working.

I've checked all my url's and that the player itself isn't broken.

Another confirmation of this problem is Moodle's flash player won't play the mp3's either. I didn't know Moodle had this player until I tried to direct-link to the mp3 and it showed up.


qzkrv9.jpg


I found this really odd because Moodle is inserting that player because it's recognized my mp3, right? Somehow in the editing process Moodle is interfering with my html code. I looked at the page source and there doesn't seem to be anything unusual. I'm not at all fluent in javascript but I have a basic understanding of it.

I'm using Firefox 3.6.10
and I don't know how to figure out what version of Moodle I'm using.
Average of ratings: -
In reply to Linda Falls

Re: Embedded mp3's in quiz no longer working

by Susan Mangan -

Hi Linda, it's Susan, your friendly neighborhood moodle help person down in ETRC.  I suspect these changes you are seeing are due to the fact that we have recently activated the multimedia plug-ins.

 

I didn't anticipate Moodle would break any existing embed code though... perhaps someone else can comment on this.

 

If you do edit, in the interim, you should simply be able to insert the file now without the embed code.

 

BTW ... we are running version 1.9.8 smile