MP3 Player

Starnox - December 31, 2008 - 15:53
Picture 4.png

MP3 Player brings the WordPress Audio Player to Drupal. Easily enable the MP3 Player on a CCK FileField. You can also change any of the WordPress Audio Player settings through an admin interface.

Key features:

  • Uses the functional WordPress Audio Player.
  • Integrates into Drupal effortlessly.
  • Player can be styled and changed through Drupal admin interface.
  • Easy integration into CCK FileField and therefore Views as well.
  • Provides a theme function that other modules or custom code can use.
  • Cache's your custom settings for fast delivery.
  • Manage multiple players each with their own set of settings.
  • Use on both public and private file systems.
  • Display file description next to player.
  • Built-in support for audio distribution over a CDN Mirror via Simple CDN

Install Videocast:

Note: Some aspects have changed since the making of this video, but the basics are the same.

This videocast shows you how you can easily install MP3 Player along with Content and FileField. All in all it takes just two minutes from a clean drupal install to getting MP3 Player working in your site.

Example manual code use:

<?php
/**
* Custom MP3 Player theme function.
*
* @param theme
*    Always set to 'mp3player'.
* @param player
*    The name of the player you want to use (default is 'Default').
* @param url
*    The URL to the mp3 file.
* @param album (optional)
*    The name of the album.
* @param artist (optional)
*    The name of the artist.
* @param description (optional)
*    A description of the mp3.
* @return A WordPress Audio Player instance.
*/
theme($theme, $player, $url, $album, $artist, $description);
?>

Two examples:

<?php
print theme('mp3player', 'Default', 'http://www.example.com/audiofile.mp3', 'An example file', 'John Smith', 'An optional description of the file');
?>

Or if your MP3 file has embedded ID3 data:

<?php
print theme('mp3player', 'Default', 'http://www.example.com/audiofile.mp3', NULL, NULL, 'An optional description of the file');
?>

For more information on how to use MP3 Player in custom code read this documentation: http://drupal.org/node/361984

To Do:

  • Just needs testing and then I will get a beta release out.

Support:

Support this project by reviewing or adding it to your favourites on DrupalModules.com.

Sponsorship:

This module is sponsored by Alpha International, Holy Trinity Brompton and CoreDesigns.

Releases

Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Feb-2214.24 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.