Hi,

great work.

I was using swftools to create playlists with node reference and view attach, but had a lot of issues with the server (that was gzipping everything - gzip mp3 provided headers without content length). First choice was the wordpress player, but it lacked support for javascript controls, or a nice playlist. Possible but lots of work, and lots of extra js. Next choice was difficult, everything seems more for video than audio. Support for soundmanager 2 was there, but limited and not entirely like I wanted.

So I started adapting, adding:
- support for mp3 page player (lots of features and fully customizable through js and css)
- the possibility to adjust some settings (bit ugly, has to be before loading js, so turn every feature on, and later toggle by Drupal Settings)
- allowed for override css
The attached files show a screen shot, and the files. It may need some clean up work (splitting admin form, or using seperate js files for variables), but it works fine.

I'm not using svn for this porject, so no patch file, sorry.

Greetz
K

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andreas_jonsson’s picture

Thanks for the patch! I had implemented the page player with swftools on a site previously, albeit way more hackish.

Drupal behaviors needs to be added to page-player.js too, to get it to work with ajax loaded content.

in page-player.js line 890 add

Drupal.behaviors.soundmanager2 = function (context) {

soundManager.onready(function() {
  if (soundManager.supported()) {
    // soundManager.createSound() etc. may now be called
    pagePlayer.initDOM();
  }
});
};
andreas_jonsson’s picture

Correction. Running the whole initDOM on loading new content was bugging out a bit.

Changed to a pagePlayer.init();

var pagePlayer = new PagePlayer(typeof PP_CONFIG != 'undefined'?PP_CONFIG:null);

soundManager.onready(function() {
  if (soundManager.supported()) {
    // soundManager.createSound() etc. may now be called
    pagePlayer.initDOM();
  }
});

Drupal.behaviors.soundmanager2 = function (context) {
  pagePlayer.init();
};

*Update

Failed to mention that more editing of page-player.js is needed.

Follow the instructions here: http://getsatisfaction.com/schillmania/topics/page_player_and_ajax#reply_665284

The code in step 3 should be added on line 728 in page-player.js

madrush’s picture

I needed the page player too, so I updated the most recent module files (6.x-3.0-beta4) with the additions included in swftools_soundmanager2_adapted_26-10-2010.zip (but not including edits to page-player.js in comments #1 and 2).

I'm pretty new to working on Drupal modules, so it would be good idea to review the code before using in production.

Basically, I have it doing what I need, but I'm not sure that the flash features (waveform, EQ data, Peak data) are working correctly.

Thanks!

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.