mp3 filter in Glossary module

mp3 filter in Glossary module

by john ellingsworth -
Number of replies: 6
Hi.

We have been able to use the mp3 multimedia plugin (filter_mediaplugin_enable_mp3) when used to link to an mp3 resource file.

However, when we use the same file within a Glossary entry, the player appears but does not actually work when the play button is pressed.

Is this a permissible use of the multimedia plugin? Has anyone else been able to use the filter_mediaplugin_enable_mp3 in a Glossary entry?

We have been able to embed various other multimedia from external sources using embed code, such as from Youtube, within the Glossary entry, but these are local files within the app and they aren't working.

Any advice greatly appreciated.

Regards,

John
Average of ratings: -
In reply to john ellingsworth

Re: mp3 filter in Glossary module

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi John,

I've tried that right now (under Moodle 1.9.2+) and seems to be working ok. I've added one link to one mp3 (locally stored in course files) to one glossary entry and I can see the controller and play it perfectly.

Could be caused by some incorrect mp3? Does that exact mp3 play in other parts of Moodle?

Ciao smile

Edited: Added image showing the mp3 being reproduced both in glossary entry and random glossary block.

Attachment mp3inglossary.png
In reply to Eloy Lafuente (stronk7)

Re: mp3 filter in Glossary module

by Cheryl Fiello -
I am using Moodle 1.9.3 and I am not able to get an mp3 to play directly in the glossary as you have done. mp3 will play in discussion forums in the upper right corner as an attachment, but in the glossary module, they have to be downloaded to play.

How did you get these mp3 files to play with the embedded player above?
In reply to Cheryl Fiello

Re: mp3 filter in Glossary module

by Cheryl Fiello -
To put this is context, what I am ultimately trying to go is have freshman German level 1 students record a vocabulary word and phrase in Garageband, export as mp3, and then embed it directly in their glossary entry for other students to listen to without having to download the file.

Anyone have suggestions?
In reply to john ellingsworth

Re: mp3 filter in Glossary module

by Todd Thornton -
John,

My MP3 files play most of the time in my glossary entries (1.9.2+), but the last second or two cuts off. From what I've read this is a possible encoding/flash/flash player conflict issue, but I'm also trying to figure out how to keep the files from auto-loading when the page is loaded. I've tried adding autoload=no but that doesn't seem to work.

Todd
In reply to Todd Thornton

Re: mp3 filter in Glossary module

by Bill Mounce -
I seem to remember somewhere that in the theme (of all places) there is a control for turning this off.
In reply to Todd Thornton

Re: mp3 filter in Glossary module

by John White -
Todd,

Bill is right (although I expect you have by now found the solution).

http://docs.moodle.org/en/MP3_player explains that the settings go in theme/yourtheme/config.php as they are part of the FlashVars string that also sets colours.

Stopping 'autoload' is addressed using waitForPlay=yes (meaning don't start loading until Play is hit)
Whilst play control is given by autoPlay=no.
Also, perhaps the parameters ought to regarded as case-sensitive to prevent any cross-browser messups!

The mediaplugin filter is very neat but not sufficiently sophisticated, in 1.9.1, to handle parameters on the fly (if my reading of it is correct).
However, you do one have set of options for mp3 files used as a Resource object $THEME->resource_mp3player_colors,
and another more general set for media objects (including mp3) inserted into a topic / web page / activity: $THEME->filter_mediaplugin_colors.

Regards,

John