Postponed
Project:
SWF Tools
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2008 at 07:01 UTC
Updated:
21 Nov 2008 at 06:30 UTC
Hi,
Is it possible to AUTOMATICALLY display an audio player if a mp3 is attached to a node ? How can I do that ? Thanks for your help.
Comments
Comment #1
vstmusic commentedIn other words, how convert file attachments to a playlist ?
Comment #2
Stuart Greenfield commentedThere was a prototype module for this with SWF Tools 5, but it was always tagged as "unstable". I haven't ported it to SWF Tools 6 yet as I'm trying to get the core modules settled down. At the moment you'd need to write some custom code (php) in to your node to access the file attachment and call the necessary
swf()orswf_list()functions.I'm going to change this thread to postponed as I don't have any time in the short term to work on a new version of the integration module, but I'm hoping I'll get round to it at some point...
Comment #3
vstmusic commentedDo yo know an example of this "custom code (php)" ? I did not see that in the module's documentation.
Comment #4
Stuart Greenfield commentedYou need to write it on a node-by-node basis, so it isn't really automatic, but you could use the SWF Tools input filter and just refer to the filename, or you could use PHP code like
Seeing that written down, it isn't exactly intuitive, so maybe I need to revisit the integration module!
Comment #5
vstmusic commentedThanks, but your code, writing in my node.tpl.php file display the player, but it does not find the audio file. If I check the code of my html page, it is :
Can you help me ?
Comment #6
vstmusic commentedI believe that the probem is here :
<param value="autostart=no&loop=no&soundFile=http://www.mysite.org/sites/default/files/test.mp3" name="flashvars">no ? what is "&" here ? Is it normal ?