Active
Project:
jQuery Media
Version:
6.x-1.4-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2008 at 16:21 UTC
Updated:
11 Jan 2011 at 10:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
brunodboLooks like it: if I use 'soundFile=...' instead of 'file=...' in the flashvars, it works fine with the 1pixelout MP3 player.
Comment #2
brunodboOk, this is what I got so far:
Thanks to Aaron's kind help, I managed to send the 'soundFile' flashvar to the embed code using drupal_add_js():
This results in the following embed code:
There are two more problems here:
1) The code above seems to revert everything to jQuery Media's default settings (as documented at http://www.malsup.com/jquery/media/#options). I can override the width and height, but not the mp3Player: mediaplayer.swf (jQuery Media's default mp3 player) is being loaded, even though my 'default mp3Player' setting (entered at /admin/settings/jq) is being printed nicely in the head of the page:
2) For the 1pixelout player to work, also the 'src' attribute of the embed element needs to contain 'soudFile=...' (it doesn't, even when soundFile is correctly inserted in the flashvars). I don't immediately see a way to override that.
Comment #3
brunodboFYI, using
doesn't let me override the mp3 player setting. The embed src attribute still contains 'mediaplayer.swf'.
Comment #4
mach5_kel commentedSame Issue. Trying to get 1pixelout to work with JQuery Media. Have no clue where to go from here.
Comment #5
kulfi commented@brunodbo, what is '/{$node->field_audio[0]['filepath']}' doing? (I'm trying to use jquery_media with core upload module)
UPDATE: The following hack gets the module working for 1pixelout:
jquery.media.js, line 364
Comment #6
carole commentedI've got the same issue with Drupal 6. Has anyone tested a work around for that?
thanks
Comment #7
chasz commentedHow does this affect the normal player?? i would still like to use the other FLV players for video
Comment #8
dmurphy commentedSWF tools is integrated with 1pixelout, and I think it's easier to use. To use SWF Tools, you just use:
That will display whatever player you have configured for MP3s.
Comment #9
carole commenteddmurphy, I'm actually trying to use SWF Tools as a work around. I want to get a player to display user-generated audio & video content nicely. Here's where I'm at with it:
1) JQuery media works on my filefield attachments, but the mp3 and flv players are the same size. Even when I configured 1pixelout as the mp3 player, it appears in a blank
2) SWF Tools looks great for embedded media, but I can't get it to display attached filefields, which is how my "add content" form works.
Any ideas? I'm in D6, and I'd love to try CCK audio for the mp3, but it's not ready. I've attached a screen print.
Update Sept 12:
I'm trying to implement two solutions; I'll let you know which works first.
a) See this great tutorial by Aaron Winborn, http://aaronwinborn.com/blogs/aaron/how-use-jquery-media-audio-video. It's not working for me yet; must be a user error.
b) See ktowle's suggestion in comment #10, below. Ktowle, where do I put the code?
Comment #10
ktowle commentedI struggled with this for a while, and finally found a solution using the jquery.metadata plugin and setting options in the class - the following code gives me an audio player just 20px high, which is the control bar:
Comment #11
chasz commentedhave u got a screenshot please :D
Comment #12
eriknewby commentedThanks ulfk!
worked great for me! I have spent several days trying to get a solution to this.
Comment #13
abu3abdalla commentedThanks ulfk!
seems its working
Comment #14
mimhakkuh commentedOne more thx to ulfk! works like a charm :)
Comment #15
geerlingguy commentedIn response to #5 above:
I think you'll need to make the change to lines 315-316 instead, now. paste this code in 315-316's place (in the jquery.media.js file inside the js folder):
Basically, this comments out the code that's wrong, and pastes in the proper code for 1pixelout.
Comment #16
aaron commentedunfortunately, #15 still seems to be the best way to handle this. means you can't use 1pxout and longtail on the same server w/ jquery media.
i'm definitely interested in finding a better way to handle this, if it ends up back on anyone's radar.
Comment #17
armyofda12mnkeys commentedThink the new jquery.media.js file might handle it as it doesn't set the 'src' attr but uses a key to do it...
i dunno though... I just used what was packaged with the module and did this so I can use flv player and mp3 player by setting attribute accordingly: