Hi,

I want to be able to show a playlist and player from a list of nodes using views. Am I able to do this or does the module only display a playlist from audio attached to a single node?

Thanks for any help.

CommentFileSizeAuthor
#6 views_playlist-2033393-6.patch5.77 KBAnonymous (not verified)

Comments

jphelan’s picture

Status: Active » Closed (works as designed)

No there is now way to do that with this module. Only multiple files attached to the same node.

Anonymous’s picture

Title: Any way to show playlist from view of audio nodes? » Create playlist from view
Version: 7.x-1.0 » 7.x-1.x-dev
Component: User interface » Code
Category: Support request » Feature request
Issue summary: View changes
Status: Closed (works as designed) » Active

I think this would be a great feature. Shouldn't be too hard to do either... Just need to output HTML ordered list of fields with the audio file URL and add the necessary JS files.

jphelan’s picture

That's a good idea. I've not done a custom view display but I would imagine it's not too difficult. I'll take a look at it.

Anonymous’s picture

Here's a module I did a while ago that implemented a custom Views display/handler/thing: https://www.drupal.org/project/masonry_views Feel free to use it for inspiration.

jphelan’s picture

Thanks man, that's helpful.

Anonymous’s picture

Status: Active » Needs work
StatusFileSize
new5.77 KB

Here's a patch I did that is working for me except that I had to tell Views to rewrite the output of my MP3 field to put the URL of the file in the 'data-src' attribute manually.

Ideally there'd be an option in the view settings to choose which field is the audio file and have views add the 'data-src' attribute to that field automatically...

This should give you a head-start though :)

jphelan’s picture

Thanks BWPanda.

jphelan’s picture

Status: Needs work » Needs review
studio ml’s picture

BWPanda, can you describe how did you use your patch with views?

Thanks!

Anonymous’s picture

To apply a patch, see https://www.drupal.org/patch/apply. Unfortunately I'm no longer using this module so cannot recall what I did outside of that... Sorry.

studio ml’s picture

Are you using another module/library to make a audio player with views from audio files on multiples nodes?

Anonymous’s picture

Yes, I'm using jPlayer: https://www.drupal.org/project/jplayer
You can see the result here: http://www.yourchurch.com.au/media/sermons