Programming + Design

Fix for Joomla MP3Player module PDF Print E-mail
Written by Brett Brewer   
Tuesday, 24 April 2007

I had a small issue (several actually) with the Joomla MP3Player module . There are several out there based on the jeroenwijering Flash MP3 player , but all of them are a bit picky about how you configure them and they seem to fail to properly implement the options available in the original standalone player. In particular, the "repeat" option doesn't work right. Instead of using the values "true", "false" and "list" for the values of the "repeat" variable, the module uses "0" and "1" and completely omits the option to jump to the next playlist item using the value "list". So I made a slight change to two module files and am posting them here for your pleasure. 

Download the module files 

Just extract the two module files from the above archive and upload them into your Joomla "modules" folder, overwriting the old versions. Then go to the config screen for the mp3player module (or whatever you have named it in on your modules admin screen) and set the "repeat" option to "list". Now when a song finishes playing, the next song in your list will automatically start. If you have shuffle play enable then it will play the next random selection instead. Also, if you do not set the repeat option at all, it will default to the "list" repeat behavior. 

Please note that I DID NOT WRITE THIS MODULE or the player from which it is derived. I take no credit for anything, not even this patch. Use at your own risk, yada, yada, yada. 

To see the module in action, head on over to my music section

Last Updated ( Thursday, 26 July 2007 )
Next >


Who's Online

We have 1 guest online

© 2017
Joomla! is Free Software released under the GNU/GPL License.