I just switched over from the CCK Audio Field, since the 2.x series of Audio has some features I'm looking for (namely the play count, and playlist), but I can't grasp how to actually use the playlist features. I see the "Add to playlist" link, and after I click on it, it looks like it just allows me to attach the current song to other songs that have been uploaded? How can I actually see my playlist and/or see a single player that has all songs from my playlist in it?

I thought the playlist feature would work like this:

1) You click on the "Add to playlist" link
2) It confirms if you want to add the song to your playlist (no checkboxes or anything)
3) You can access a page such as /audio/playlist/1, and it would have one player that shows all the songs in your playlist

Can someone please point me in the right direction? :)

Comments

tj2653’s picture

Re-reading the README.txt file for the playlist contrib, it appears that it might be already doing some of the stuff I need it to do (#1 and #2 from above) - I might just be seeing more than I should since I have admin rights. But I still don't understand how I actually see my playlist, and if it has all songs in one single player.

tj2653’s picture

Okay, I think I figured out part of my confusion after reading #6 on http://drupal.org/node/146329. I enabled "Attach audio files" on the audio content type itself. I guess I should create a new content type like "playlist", and use that? Is there any documentation on this step, or did I completely miss it somewhere? :)

Other issues:

1) Is it possible to limit the number of songs they add to their playlist (i.e. 20)?
2) Can we prevent the same audio file from being attached to a playlist twice/multiple times?
3) Is it possible to limit each user to one playlist (I suppose this could be outside the realm of the Audio module)

zirafa’s picture

I think the confusion may be that yes, you have to create your own playlist content type, and then allow audio attach on that content type. That will allow users with permissions to create the playlist content type the ability to make unlimited playlists, as you can see. Then, depending on what permissions you select for audio_attach and audio_playlist, a user will be able to see "add to playlist" on just their own or all audio on the site. After they click that link, it will show checkboxes for each playlist they can add that file too.

There is no configuration settings for limiting the number of songs that can be added, or preventing the same audio file being attached multiple times (some people think that is a feature, actually). Also no settings for limiting just one playlist. You would probably have to modify the module, create a new module, or submit patches for those kinds of feature requests.

Right now the idea is loosely based around how iTunes deal with playlists - i.e. multiple playlists, multiple instances of songs, sort them. What you are describing sounds like a "favorites" type functionality. Maybe check out the node queue module, although that is administer-centric.

tj2653’s picture

Thanks zirafa, that's very helpful :) By preventing the same audio file from being attached multiple times, I should have clarified "for the same playlist". It's very useful to allow for the file to be attached to a few different playlists, but I can't think of any reason it should be attached to the same playlist more than once. Maybe if some other people agree, we can suggest it as a new feature (to throw up a warning that says that the song has already been added to Playlist X)?

zirafa’s picture

Originally you couldn't add a song more than once to a playlist but I think the reason the feature was added was simply because a few interesting use cases came up. For instance, if you use the playlist module to create a radio sequence of sound bites, you might want to have the station identity soundbite appear more than once in a segment. The other reason is because it made the code cleaner - it's easier to restrict already existing features than to force new features into something old.

tj2653’s picture

Gotcha - I didn't think of that.

vph’s picture

zirafa,
Is the 5.x-2.x-dev as up-to-date as the released version (I think 5.x-1.3)? Somehow I feel that the released version has some bugs fixed whereas 5.x-2.x has playlist but without certain bugs fixed in the released version.

Thanks.

zirafa’s picture

I'm not sure if they are out of sync, they could be. drewish maintains the branches so could probably provide some more info.

vph’s picture

Thanks. One more question (and sorry for it is out of place): any idea when audio (with playlist) will be released with Drupal 6, after Drupal 6 comes out? Thanks.

zirafa’s picture

Status: Active » Fixed

I am not sure about progress with porting the audio.module to Drupal 6 at this time. Marking this issue as fixed.

leanazulyoro’s picture

Where is the "attach audio" option? i'm going crazy here, i don't have that option in the content type creation/edition form, is it included with the audio module?

arbel’s picture

how do I display an flash player on my site that plays the playlist?

Idan

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

RyanFC’s picture

the audio attach option is in your Content Type options. So for instance,
Create a content type - "playlist"
enable attach audio, then go to one of your uploaded tracks pages and presumably "add to playlist"

However there is a fatal error for me for drupal 6.5 which I've discovered is in process here: http://drupal.org/node/294317