Home » modx » dewplayer

dewplayer

What is dewplayer?

dewplayer is a mp3 music flash player created by dew, under Creative Commons license. For more information on dewplayer, you can visit this page.

dewplayer package for modx revolution provides a snippet to facilitate the flash player code generation into modx ressources.

Requirements

  • MODx Revolution 2.0.0-pl or later
  • PHP5 or later

Info

Download

It can be downloaded from within the MODx Revolution manager via Package Management, or from the MODx Extras Repository, available here: http://modxcms.com/extras/package/704.

Development and Bug Reporting

dewplayer package for modx revolution is stored and developed in GitHub, and can be found here: http://github.com/wildcat54/dewplayer.

Usage

Snippet

dewplayer can be called via the Snippet tags, and passing a 'filePath' argument.

Snippet Parameters

Name Description Default Value
version mp3 flash player version to use. Can be 'classic', 'mini', 'multi', 'multi rect', 'playlist' or 'bubble'. classic
backgrndColor Background Color. 'transparent' or color code (FFFFFF) without #. transparent
volume Volume (0 to 100%). 100
autostart Song starts automatically if enabled. 0
loop Enables autoreplay. 0
showtime Shows the time of the song (minutes:seconds) if enabled. 0
nopointer No cursor shown if enabled. 0
randomplay Random Play if enabled. 0
fading Fading between songs in seconds. 0
fileType File Type. Can be 'mp3' or 'xml'. mp3
filePath The path to the file (absolute or relative path). If multiple MP3 files, please separate URLs with | (pipe). For xml file, the XSPF format is required.  

Examples

  • snippet call with default values and mp3 file = 'test/file.mp3'
    
    [[dewplayer? &filePath=`test/file.mp3`]]
    
    
  • snippet call with version='bubble' autostart=true and mp3 file = 'test/file.mp3'
    
    [[dewplayer? &version=`bubble` &autostart=`1` &filePath=`test/file.mp3`]]
    
    
  • snippet call with version=playlist, autostart=true, loop activated, showtime activated, 3 seconds fading and xml file='test/xmlfile.xml'
    
    [[dewplayer? &version=`playlist` &autostart=`1` &loop=`1` &showtime=`1` &fading=`3` &fileType=`xml` &filePath=`/test/xmlfile.xml`]]