In the question editor/creator, there is an easy way to embed an image in your question. It's a pull-down menu of your uploaded images with a field name to the left: "Image to Display." See attached screen shot.
Does anyone know of a similar feature that allows you to embed an audio file (MP3) in the same window as the question? Is it possible to configure your own question editor to have that functionality?
Thanks.
Hi Daniel,
Actually, I never use the Image to display functionality in a Quiz. I find it more ergonomic to put a link to a media file (image, sound, movie, etc.) inside the text of your question.
For an MP3 audio file to be "embedded" in a tiny flash player (see attached screen dump), of course, admin must have enabled the multimedia plugins in the Filters.
Enjoy,
Joseph
This is a reply to a private message from Daniel asking for more info
about inserting a link to an MP3 file within a quiz question.
There are various ways to insert links to media files in Moodle.
You can
(1) insert a link which when clicked will open a new window activating your computer's default media player (e.g. quicktime, realaudio, windows media player, etc.)
(2) OR rely on the automatic insertion of the small Flash player built-in Moodle
(3) OR both!
Result (1) will be achieved if the Flash player has not been activated by admin.
Indeed, for the small Flash player to appear, it must have been activated by the administrator of your Moodle site. Logged in as admin, go to Administration » Configuration » Filters, and move the Multimedia plugins option from the Inactive (right) to the Active (left) column.
Sample coding in text of a quiz question (you need the HTM editor to be activated, of course).
(3) method to display both a link and the Flash media player
Hope this helps.
Joseph
There are various ways to insert links to media files in Moodle.
You can
(1) insert a link which when clicked will open a new window activating your computer's default media player (e.g. quicktime, realaudio, windows media player, etc.)
(2) OR rely on the automatic insertion of the small Flash player built-in Moodle
(3) OR both!
Result (1) will be achieved if the Flash player has not been activated by admin.
Indeed, for the small Flash player to appear, it must have been activated by the administrator of your Moodle site. Logged in as admin, go to Administration » Configuration » Filters, and move the Multimedia plugins option from the Inactive (right) to the Active (left) column.
Sample coding in text of a quiz question (you need the HTM editor to be activated, of course).
(3) method to display both a link and the Flash media player
- In the question text, type "Listen to this sound and say what you heard."
- Select this sound
- Click on the Insert Web Link button
- Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
- Toggle HTML source and view the result, something like this:
Listen to < a href="http://moodle/file.php/2/audio/trumpet.mp3" >this sound< /a > and say what you heard. - Now type in the rest of your question data, depending on its type (MCQ, short answer, etc.).
- The result will look something like (3) in screen dump below.
- The student has a choice of using the Flash player (with its minimum buttons) or clicking on the link, which will open the computer's default media player, with all its buttons.
- In the question text, type "Listen to this sound xxx and say what you heard."
- Select xxx
- Click on the Insert Web Link button
- Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
- Toggle HTML source and view the result, something like this:
Listen to < a href="http://moodle/file.php/2/audio/trumpet.mp3" >xxx< /a > and say what you heard. - Delete xxx
- The result will look something like (2) in screen dump below.
- The student can only use the Flash player.
Hope this helps.
Joseph
I'm having problems with this solution.
All that appears in IE8 for instance, is a blank rectangle where the flash object should appear (the legend movie not loaded appears in the right-click menu).
In Firefox it doesn't show at all (but the flash object is in the source code).
I checked the source code where the flash object was and I found something like this:
All that appears in IE8 for instance, is a blank rectangle where the flash object should appear (the legend movie not loaded appears in the right-click menu).
In Firefox it doesn't show at all (but the flash object is in the source code).
I checked the source code where the flash object was and I found something like this:
Nevermind. The issue was that the flash player was looking for the file like this:
and for some reason this works:
So apparently I cannot use absolute paths as a parameter for the mp3player.swf file. In my server at least.
http://mysite/filter/mediaplugin/mp3player.swf?src=http://mysite/files.php/5/folder/file.mp3
and for some reason this works:
http://mysite/filter/mediaplugin/mp3player.swf?src=../../files.php/5/folder/file.mp3
So apparently I cannot use absolute paths as a parameter for the mp3player.swf file. In my server at least.