Gallery2:Modules:mp3audio - Gallery Codex
Personal tools

Gallery2:Modules:mp3audio

From Gallery Codex

MP3Audio Module

Adds a Flash based (mp3) audio player to Gallery.

Description

Allows for listening mp3 music items in your Gallery / web-browser.

  • Without this module, you just get a Download file link for mp3 files in your Gallery.
  • After activating this module, you can play / listen to the mp3 file when browsing to mp3 items in your Gallery.

Parameters

For expert users: If you want to manipulate the HTML to change the way the player is called, here is a complete list of all parameters:

  mp3Url - full url to the mp3
  thumbUrl - full url to preview thumb
  title
  id3 language:
  langGenre = "Genre";
  langArtist = "Artist";
  langAlbum = "Album";
  langSong = "Song";
  langYear = "Year";
  langTrack = "Track";
  allowDl - allow download? true/false (shows/hides download button)
  langDownload - tooltip Download
  langInfo - tooltip Info

Customization examples

Disable allow download

1. open /modules/mp2audio/MP3AudioRender.class and find:

    /* Set allowDL=false to omit download button in lower right of player */
         $flashVars = 'mp3Url=' . urlencode($src) . '&allowDl=true';

2. change to:

    /* Set allowDL=false to omit download button in lower right of player */
         $flashVars = 'mp3Url=' . urlencode($src) . '&allowDl=false';
advertisements