MP3 player

De MoodleDocs

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 o 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

Nota: Pendiente de Traducir. ¡Anímese a traducir esta página!.     ( y otras páginas pendientes)

MP3 playback options

theme/yourtheme/config.php contains options for changing the playback options of the MP3 player.

  • waitForPlay determines whether the MP3 file starts downloading as soon as the player appears on the page (waitForPlay=no), or whether the play button must be pressed before the MP3 file starts downloading (waitForPlay=yes).
  • autoPlay determines whether the MP3 player starts playing the MP3 as soon as the player appears on the page (autoPlay=yes), or whether it must be fully downloaded before playing (autoPlay=no).
  • buffer determines how many seconds of the MP3 file must be downloaded before the MP3 starts playing e.g. 10 seconds (buffer=10).

Default playback options

  • Big MP3 player: buffer=10&waitForPlay=no&autoPlay=yes
  • Small MP3 player: waitForPlay=yes

Vea también