The trick to making the drupal xspf playlist module more useful is to allow other modules to interact with it. This includes letting xspf know that it can use files from other areas, setting thumbnails, and so.
I wrote two new hooks for xspf playlist which let other modules get into the game:
- xspf_playlist_use This lets modules announce to xspf playlist that they can be used for building the playlist by using $op = 'define'. When xspf_playlist builds its playlist, it calls modules which an admin has selected with $op = 'return'
- xspf_playlist_thumbnail Lets modules interact with the thumbnailing process. Modules announce with $op = 'define' and return a path to a thumbnail with $op = 'return'.
XSPF playlist supports drupal's file attachements out of the box and Media Mover has support for this already.



Post new comment