Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
audiofield.patch | 6.11 KB | eaton |
Comments
Comment #1
David Lesieur CreditAttribution: David Lesieur commentedJust tested this. Works great! +1
Comment #2
ardas CreditAttribution: ardas commentedThanks 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.
Comment #3
eaton CreditAttribution: eaton commentedNo 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. ;-)
Comment #4
ardas CreditAttribution: ardas commentedYes, 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?
Comment #5
eaton CreditAttribution: eaton commentedNot necessarily. Players should be formatters for the most part, since they affect output but not the uploading/management of the actual audio files.
Because I want the audio file to be managed as a discrete field, displayable in a table view, etc. :-)
Comment #6
heng CreditAttribution: heng commentedi 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 ^^
Comment #7
ardas CreditAttribution: ardas commentedThis 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.
Comment #8
ardas CreditAttribution: ardas commentedDid you try SWFTools module for outputting players?
Comment #9
Carlos Miranda Levy CreditAttribution: Carlos Miranda Levy commentedPatch 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.
Comment #10
nedjoNeeded this functionality so turned Eaton's patch into a separate module, http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/mediafield_....
Comment #11
nedjoPosted 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.
Comment #12
headkit CreditAttribution: headkit commentednice 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!
Comment #13
VM CreditAttribution: VM commentedwith the medifield_display.module alive & well, does this even need to be open any longer ?
Comment #14
a_c_m CreditAttribution: a_c_m commentedNot to my mind, closing - if anyone wants to re-open it, please do giving your reasons.
Comment #15
VM CreditAttribution: VM commentedreopening
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.
Comment #16
a_c_m CreditAttribution: a_c_m commentedI've contacted colan last night, just sent a message to nedjo to see what his thoughts are.