Closed (won't fix)
Project:
SWF Tools
Version:
5.x-1.x-dev
Component:
SWF Tools
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2007 at 19:41 UTC
Updated:
23 Aug 2008 at 22:21 UTC
I've a basic playlist working using Audiofield and SWFTools by doing the following:
<?php
if ($node->field_track_1[0]['view'] != NULL) {
foreach ((array)$node->field_track_1 as $item) {
$items[] = "profile/audio/" . $item['filename'];
}
$playlist = swftools_prepare_playlist_data($items);
print swf_list($playlist, '204x90');
}
?>
However I need to be able to control what is put into the different XSPF playlist elements. For example in the following fields:
<title>filename</title>
<info></info>
<location>filepath</location>
Is there a way to parse more information to the swftools_prepare_playlist_data function? If so how?
Any help would be greatly appreciated.
Cheers
Zap
Comments
Comment #1
headkit commentedi think with the combination of
you don't need swftools anymore for playing lists of mediafiles.
the clue is to get the uploaded mp3-files become handled as files for they can be listed via the xspf_playlist.module.
but ask me how...
Comment #2
Stuart Greenfield commentedAt the moment you can't pass additional data to the playlist generator. You could alternatively generate your own xml play list and pass this in to a player.
At the moment I don't have any plans to enhance the xml playlist mechanism in SWF Tools. It's designed to be fairly simple, and adding highly customisable xml generation makes the module very complex.