The attached patch adds CCK formatter support for the 1pixelout.swf and button.swf flash players that are included with audio.module.

http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/au...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/au...

Those two players need to be placed in the mediafield/players directory.

CommentFileSizeAuthor
audiofield.patch6.11 KBeaton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David Lesieur’s picture

Just tested this. Works great! +1

ardas’s picture

Thanks for the patch. This is realy what I needed for audiofield.module.
Nevertheless, I don't want to hurry with its applying because I found that there are several modules in Drupal which aim to play audio and video content, they understand lots of different formats and as I know even have an ability to customize player (http://drupal.org/project/coolfilter).

I don't think distributing flash player with audiofield.module is a good idea because it will be hardcoded and other modules should have their own player. Such common things should be put somewhere else or implemented within separate module.

Please, read this post http://groups.drupal.org/node/2809, and welcome to the video group where we are discussing the future of media content in Drupal. You will also find several links to other useful modules.

I'm still thinking of implementing your patch, but I would like to discuss it in details.

Thanks.

eaton’s picture

No problem. It's easy enough for me to write another module that does nothing but expose some novel formatter plugins for the audio/video fields for use on my own sites, so I can keep using the stuff I like while the details are hammered out. ;-)

ardas’s picture

Yes, you can implement your own widget for audiofield in a separate module. You can even have several widgets for audiofield... btw, its a good idea to develop all players as a CCK widgets attaching them to audio or video fields :) That should be discussed.

Why don't you want to use coolfilter to play your audio?

eaton’s picture

Yes, you can implement your own widget for audiofield in a separate module. You can even have several widgets for audiofield... btw, its a good idea to develop all players as a CCK widgets attaching them to audio or video fields :) That should be discussed.

Not necessarily. Players should be formatters for the most part, since they affect output but not the uploading/management of the actual audio files.

Why don't you want to use coolfilter to play your audio?

Because I want the audio file to be managed as a discrete field, displayable in a table view, etc. :-)

heng’s picture

i like what the patch is supposed to do and i'd love to use this but i cant get it to work.
i patched the audiofield.module and create the mediafield/players dir
but i cant find where i can define which player to use?
plz help :D i need to get this working ^^

ardas’s picture

Status: Needs review » Postponed

This is postponed because we are discussing the future of video in Video group with video.module author and others. You are welcom to participate there.

ardas’s picture

Did you try SWFTools module for outputting players?

Carlos Miranda Levy’s picture

Patch is apparently for dev version dating back to February 2007, current dev version is from June.
Here's a solution that works (by using SWFTools) and Audiofield...
http://drupal.org/node/157922

I tried it and everything works like a charm now.

nedjo’s picture

Needed this functionality so turned Eaton's patch into a separate module, http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mediafield_....

nedjo’s picture

Posted this as a module, http://drupal.org/project/mediafield_display.

I tried building this instead off of swftools but it looked much more complicated to implement.

I put a note on the module's page about deprecating it when a consensus solution emerges.

headkit’s picture

nice work and thank you for sharing!
I have the problem that I need to get a bunch of mp3-files into a playlist. inserting a set of files to a node is not the problem, but to tell a mp3-player that there is a playlist is not easy - for me.
thanx for your help!

VM’s picture

with the medifield_display.module alive & well, does this even need to be open any longer ?

a_c_m’s picture

Status: Postponed » Closed (fixed)

Not to my mind, closing - if anyone wants to re-open it, please do giving your reasons.

VM’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

reopening

Personally, I think the mediafield display.module can be folded into mediafield. That was the original intention. You may want to open a line of communication with nedjo. This would keep mediafield display from falling through the cracks on the way to the D6 port of mediafield.

If you still feel this isn't warranted, reclose.

a_c_m’s picture

I've contacted colan last night, just sent a message to nedjo to see what his thoughts are.