I'm trying to create a playlist using a view by filtering for audio nodes.
If I a view type full nodes then the nodes are displayed.
When I select XSPF playlist I get the playlist XML with no tracks:

<playlist version="1">
<title/>
<info>http://XXXXXXXX</info>
<annotation>Playlist xml</annotation>
<trackList>
  </trackList>
</playlist>

Should I be supplying certain fields?

Comments

arthurf’s picture

Things are still a bit quirky here- you need a bit more than just the views interface. What you do is define your view handing back a set of nodes. In admin/settings/xspf_playlist you can adjust what options you want to use when those nodes are handed back. For example, if you're using media mover, you can generate the playlist from the nodes selected in views and the files that those nodes have from media mover. The other option that you have are CCK fields or attached files. Its also pretty trivial to write your own hook to return the kind of files that you want- look at xspf_playlist_xspf_playlist_use() which gives you an example of how to write this.

sbhattarai’s picture

Hi,

I am going to http//xyz.com/xspf/node/12 but I get page not found. I was wondering if anybody could help

Thanks

kansas-1’s picture

I also have this problem with my View returning an empty tracklist.

It seems like the xspf_playlist module should handle Audio nodes without any special configuration.

If automatic Audio node handling is not going to be built into the xspf_playlist module, could you tell us how to add it? I am not a PHP developer, so I really need your help, step by step.

I really like what you have done so far!

Cheers!

drew reece’s picture

@3

I have had similar problems to you. So far I have made an 'xspf playlist feed' view, creating a page called music.xml. I set up the xspf playlist setting to use the Audio type.

I installed swftools module and set up a filter for it, so I could use the following to create the player inside a block. Suggested here http://drupal.org/node/160265

<?php
print swf('http://ABSOLUTE-PATH/music.xml', SWFDEFAULT,  array(
    'displaywidth' => '300', 'autostart' => 'no',     
  )
);
?>

The playlist was always empty, I turned 'Allow Audio Attachments' for the Audio content type and added files but still nothing showed up in the playlist.

Then I added a CCK audio field, and I got output in the playlist, the player reads the file and it works. It seems like all the audio module's benefits are lost (no id3 parsing for audio-fields, audio images don't get used from the file) because we need to use cck audio-feilds for the audio & image files to get them to be processed.

I'd imagine this will be in a future release?

PS I'm having trouble stopping autostart :)

Drew

joachim’s picture

I've filed a new issue for support for the audio module, with a patch that provides it: http://drupal.org/node/330936