Hello! :)

I've read the documentation but either didn't understand things right or didn't find 'em -> so I have some questions and it would be really great if someone could help me.

Attached is the current state of my mp3-playlist (swf_playlist_current.png) and also the visual target I'd like to reach (swf_playlist_target.png).

This is my code:

          $playlist = array();
          foreach ($node->field_media_upload AS $audio) {
          $playlist[] = $audio['filepath'];
          }

          $playlist =  swftools_prepare_playlist_data($playlist);

          print swf_list($playlist,
		  array(
				'params' => array(
								  'height' => 420,
								  'width' => 500,
								  'image' => false,
								  'base' => 'http://localhost/multisite/sites/default/files/user/1/audio'
		  ),
		  'flashvars' => array(
				'image' => 'adsf',
		  ),
		  )
		);
    

I don't know what's wrong but the params 'image' => false and 'base' => '...path...' are always ignored.
With swf(); it always worked.

The title of each track in the playlist could be either the 'filename' or (much better) the text of its description field.

Can someone tell me how to theme my swf output to reach the attached target?
If it is easier I could switch from cck filefield to attachments.

Thanks a lot in advance! :)

Stefan

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

design.er’s picture

FileSize
3.23 KB

Here is the visual target.

szb100’s picture

I have the same issue - any help?

Pav-2’s picture

Has anyone fixed this I'm trying to follow this tutorial on JWPlayer playlists https://elearning.psu.edu/elearning/using-drupal-generate-jwplayer-frien... but can't get the xml to theme - if you know how to do this or how to create a playlist from YouTube using any player please let me know.

Any help will be much appreciated I'm a bit stuck now.