SoundManager2
This modules provides Drupal with the soundmanager2 player and with two styles: page-player and ui360.
Basically there are three modules:
- Sound Manager 2 module: adds the required swf and js for embedding the player. Other modules should use this module to load the soundmanager2 player.
- A CCK formatter: for filefield and nodereference for audio.module nodes.
- An SM2 audio modules integration: provides a new player with both styles for audio.module nodes
The styles are "muxtape" (page-player)
http://www.schillmania.com/projects/soundmanager2/demo/page-player/
and ui360.
http://www.schillmania.com/projects/soundmanager2/demo/360-player/canvas...
Instructions
- Install the module as usual.
- Download soundmanager2 from http://www.schillmania.com/projects/soundmanager2/doc/download/
- Unzip to sites/all/shared/soundmanager2 (or a custom folder, you may set this up in the admin pages of soundmanager2 module)
Note: dev version does not use this patch anymore, and this feature will be removed in final version.
And if you want fully featured player title (from id3 tag, apply the patch from http://drupal.org/node/480754#comment-2140588 to filefield)
Audio Module Integration
Currently, if you have the audio module (and audio_getid3 to get the tags) active, you should be able to reference an audio node and add the audio attached to it
Steps:
- Activate audio module, http://drupal.org/project/audio
- Activate Sound Manager 2 playlist CCK formatter (sm2_plst_cck)
- Add a CCK node reference field, and set up to choose from audio content type
- In display, choose "Audio integration. Soundmanager2"
- There you go!
Audio module Extension
The ui360 player is added to the audio module with sm2_audio submodule!!!!!!!
- Activate audio module http://drupal.org/project/audio
- Activate SoundManager 2 audio player (sm2_audio)
- Edit admin/audio/players, choose ui360 or page player.
- There you go!
Exclude mp3
If you want mp3 to be excluded inside the ul playlist, add the class "exclude" to the anchor tag.
<?php
<a href="file.mp3" class="exclude">Download</a>
?>Discussion
I am thinking on rewriting this module and make it several submodules. Let the Soundmanager2 be a central manager for including the scripts and the player, and have other module to activate the CCK formatters.
Plase, see #614662: Separate into several modules. and post your opinion. Thank you!
Related
If you want more formatters for players, have a look at http://drupal.org/project/swftools
Version 2
Now separates the module into the base sm2 (for allowing dependencies for other modules) and the cck formatter as before.
The CCK formatter is working with Filefield and Audio nodereference.
For more info: #614662: Separate into several modules.

