Gallery:模块:mp3音频(mp3audio)

来自站长百科
Sunzz1985讨论 | 贡献2008年6月12日 (四) 10:29的版本 (新页面: = 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 ju...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

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';