Hi all,
Here's what I'm trying to do:
Create a block that lists recent/popular audio files uploaded to a site by users. Each list item in the block needs to be a link that opens a new window sized just to fit a Flash music player (so far I've been looking at XSPF Music Player). When the player starts, it needs to be loaded with a playlist that could contain any number of the audio files uploaded to the site (probably marked by admin for playlist), and ideally it's playing the song the user clicked in the block.
I was thinking of using the CCK file field to make an audio content type and hardcoding a block in PHP to query the database and generate the links. But I'm not sure what the links' targets should be (a stand-alone PHP script?). I read up on the Audio module for Drupal 5.x, but it sounded like some of the features that would have been useful haven't yet been carried over from the 4.7 version.
I'm OK with PHP and can hack my way around in JavaScript, so coding's not a problem, but I'm not sure what kind of approach is going to work for Drupal.
Any suggestions greatly appreciated,
Thanks!
Comments
Done that
Done that with ajax before.Try ajax.
Griffonia | Voacanga Africana | http://www.voacanga-africana.com.gh/sheabutter/">Shea Butter
Flash audio pop up
mrbert,
Thanks for responding. That was on a Drupal-powered site? Can you tell me what modules, libraries, etc. you used, and what the overall structure of your solution was?
Thanks again,
ng
One suggestion
I'd reccommend you check out this flash mp3 player, which in my opinion is much nicer than the XSPF player
http://drupal.org/node/92888
Mr. AutoInsurance Guy, It
Mr. AutoInsurance Guy,
It does look a lot slicker anyway. I was pointed towards the XSPF player because it's been extended to hook up with iTunes to sell songs at Hype Machine. Any idea if that's possible with Jeroen Wijering's player?
Thanks for the tip,
- Ngapi
Did you have any luck with this?
I would like to do something similar. Originally had my site set up to do this using version 4.7 but and the falsh palyer but haven't been able to upload this using version 5.0
Any advice
Guy
Sorry for a delayed response
Guy,
I did end up getting this to work as needed. Unfortunately I've forgotten the details since it's been so long. Basically I made the link to the player popup a new window. The new window is a node, but it's themed to have nothing visible except the player. It accepts parameters on the URL request (GET arguments) that indicate which song it should load. Hope that helps a bit,
- Ngapi