Mediafield: Allow mp3 files to output as flash players

eaton - February 17, 2007 - 16:51
Project:Media Field
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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.

AttachmentSize
audiofield.patch6.11 KB

#1

David Lesieur - February 18, 2007 - 21:15

Just tested this. Works great! +1

#2

ardas - February 19, 2007 - 11:24

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.

#3

eaton - February 19, 2007 - 14:56

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. ;-)

#4

ardas - February 19, 2007 - 15:17

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?

#5

eaton - February 19, 2007 - 16:06

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. :-)

#6

heng - February 20, 2007 - 19:26

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 ^^

#7

ardas - February 22, 2007 - 09:17
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.

#8

ardas - April 22, 2007 - 07:50

Did you try SWFTools module for outputting players?

#9

Carlos Miranda Levy - July 17, 2007 - 19:10

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.

#10

nedjo - July 26, 2007 - 20:00

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

#11

nedjo - July 28, 2007 - 18:40

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.

#12

headkit - December 10, 2007 - 12:12

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!

#13

VM - May 29, 2008 - 00:02

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

#14

a_c_m - June 25, 2008 - 20:45
Status:postponed» closed

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

#15

VM - June 25, 2008 - 21:55
Status:closed» 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.

#16

a_c_m - June 26, 2008 - 09:44

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

 
 

Drupal is a registered trademark of Dries Buytaert.