El filtro multimedia permite integrar archivos MP3 en un reproductor de streaming hecho con Flash p.ej.Características de Moodle: Archivo MP3. El reproductor MP3 ampliado se usa cuando se añade un archivo MP3 como recurso. El reproductor MP3 reducido se usa cuando un archivo MP3 es enlazado desde un post de un foro u otro recurso o actividad usando el editor HTML.

Ratios del reproductor MP3

Para asegurar que los archivos MP3 son reproducidos con el ratio correcto, deben usarse, por ejemplo, ratios de 11, 22 ó 44 KHz.

Parámetros de seguridad del Flash

Los cambios en la seguridad en la versión 7 del reproductor Flash pueden tener como resultado que el reproductor MP3 no reproduzca los archivos MP3 almacenados en un servidor remoto. Este problema puede ser resuelto escribiendo una política Cross-domain(dominio cruzado) para el servidor remoto y/o que cada usuario cambie sus parámetros de seguridad global en las opciones de configuración del reproductor Flash.

Política Cross-domain

Para crear una política cross-domain , guarde el código indicado abajo como crossdomain.xml y ponga el archivo en el directorio principal del servidor remoto.

<cross-domain-policy>
   <allow-access-from domain="www.yourmoodlesite.org" />
</cross-domain-policy>

Por favor diríjase a Macromedia - Developer Center: Security Changes in Macromedia Flash Player 7 para más detalles.

Opciones de Seguridad Globales

Por favor diríjase a Macromedia - Flash Player Help: Global Privacy Settings Panel.

Colores del reproductor MP3

theme/yourtheme/config.php contiene las opciones para cambiar los colores por defecto (negro, blanco y gris) del reproductor MP3.

$THEME->resource_mp3player_colors = 
 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
 'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';
/// With this you can control the colours of the "big" MP3 player 
/// that is used for MP3 resources.
$THEME->filter_mediaplugin_colors = 
 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
 'waitForPlay=yes';
/// ...And this controls the small embedded player

Opciones de reproducción MP3

theme/yourtheme/config.php contiene las opciones para cambiar las opciones de reproducción del reproductor MP3.

  • waitForPlay determina si se inicia la descarga del archivo MP3 en cuanto aparece el reproductor en pantalla (waitForPlay=no), o si es necesario que se haga clic sobre el botón play para que se inicie la descarga del archivo MP3 (waitForPlay=yes).
  • autoPlay determina si el reproductor MP3 reproducirá el archivo Mp3 en cuanto aparezca el reproductor en la página (autoPlay=yes), o si el archivo deber ser descargado completamente antes del inicio de la reproducción (autoPlay=no).
  • buffer determina cuantos segundos del archivo MP3 deben descargarse antes de que el reproductor MP3 inicie la reproducción. Ej.: 10 segundos (buffer=10).

Opciones de reproducción por defecto

  • Reproductor MP3 grande: buffer=10&waitForPlay=no&autoPlay=yes
  • Reproductor MP3 pequeño: waitForPlay=yes

Insertar sonidos en las preguntas

In a forum, Joseph Rézeau offer this

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!

The filtro for multimedia must be on and Flash enabled. The HTML editor needs to be active for the question content.

  1. In the question text, type "Listen to this sound and select your answer."
  2. Select by highlighting "this sound"
  3. Click on the Insert Web Link button
  4. 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.
  5. 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.
  6. Now type in the rest of your question data, depending on its type (MCQ, short answer, etc.).
  7. The result will look something like (3) in screen dump below.
  8. 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.

(2) Method to get the Flash player only, and no link to open an external player

  1. In the question text, type "Listen to this sound xxx and say what you heard."
  2. Select xxx
  3. Click on the Insert Web Link button
  4. 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.
  5. 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.
  6. Delete xxx
  7. The result will look something like (2) in screen dump below.
  8. The student can only use the Flash player.
Archivo:Quiz question MP3 example.JPG
Ejemplo de una pregunta de un cuestionario con sonido

Vea también