I am having problems getting audio to play when attaching audio to a node using mediafield. The message I get is "Error opening file" in the 1pixelout player. I'm sure this problem is related to passing the correct url, similar to http://drupal.org/node/179439, http://drupal.org/node/162379 and http://drupal.org/node/154364. However, after applying any and all of these patches (#179439, #162379, and #154364 to SWFTools--as an alternative to mediafield and audio), I'm unable to get my setup to work.
I am using mediafield to upload and attach audio to an existing content type (a product content type under the ubercart module for e-commerce). I'm also using the Mediafield Display module to be able to view the attached audio as an inline flash player when viewing the node. This problem occurs whether clean urls is on or off. Audio does play properly if I create an audio node without mediafield. I'm running Drupal 5.5 and Audio 5.x-1.3.
The site this is being developed for is located at http://engineroompublishing.com.
Thank you in advance for anyone that can help me. Unfortunately I don't know enough PHP to solve this myself.
Comments
Comment #1
bartoki commentedLooking at this some more, I believe the problem has to do with the file multimediafile.inc included with Mediafield. The solution can probably be found by looking at http://drupal.org/node/179439, where the solution was to modify the 1pixelout.inc provided with the audio module by adding this:
Like I said, I'm unable to find where to place this in multimediafile.inc because I don't know PHP.
Comment #2
vm commentedI'd test the -dev version and insure the problem wasn't fixed between the release of 1.0 and the date of the -dev version
I say that because I am using the -dev version and audio seems to play perfectly well.
I'd also insure that the problem doesn't lie somewhere in the content type you are adding to by creating a simple audio content type, and testing for functionality.
The code above which is some sort of patch for the audio.module may not apply to multimediafield.inc, audio is handled in audiofield.module file, the multimedia.inc file doesn't do anything with the flashvars
see mine here albeit with a different player as I added my own to media field display, if you like, I can set it to 1pixelout which works as well.
Comment #3
bartoki commentedThanks for your reply.
After further, further investigation I saw that it had nothing to do with multimediafile.inc, but instead the Mediafield Display module (mediafield_display.module) I'm using to show the inline 1pixelout player in my node. It's this file that's passing along the audio file's URL incorrectly. I'm not sure if many people are using this module, so I don't know how much support I'll be able to get. I'll try posting a bug report for that module.
Thanks again for your help. I feel like Inspector Gadget, trying to ineptly track down clues...all I need now is a Penny.
Comment #4
vm commentedI'm using the media_field_display.module as well, Switched it to use the 1pixeloutplayer and it seems to work pefect well.
dev.verymisunderstood.com to see it.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )