Hi Jake,

Sorry for the delayed response.  Due to an oversight on my part the
flvPlayer can only be overridden globally using
$.fn.media.defaults.flvPlayer.  And it looks like I've got a bug supporting
the old metadata plugin, but the current one seems to work fine.  Here's a
test page that shows an example of what I think you're trying to do:

http://malsup.com/jquery/media/jake.html

Cheers!

Mike


On Fri, Feb 22, 2008 at 9:38 AM, Jake McGraw <[EMAIL PROTECTED]> wrote:

>
> I'm trying to use the Media Plugin as it appears to be a gift from god
> in the way it handles multiple media types with the same code.
> Unfortunately, I've got two problems:
>
> 1) I can't get it to acknowledge my custom flash video player. When I
> do something like:
>
> $(".mediabox").mediabox({
>  "flvPlayer" : "http://www.foobar.com/fooplayer.swf
> });
>
> and then click on a link, say:
>
> <a class="mediabox" href="http://www.foobar.com/media/bar.flv";>Watch
> Now!</a>
>
> Firebug tells me I've requested the following URL:
>
> mediaplayer.swf?file=http://www.foobar.com/media/bar.flv
>
> 2) I can't get it to acknowledge my custom flashvars, which are unique
> for each video. I've tried using both the metadata plugin:
>
> <a class="mediabox
> {flashvars:{playlist_url:'http://www.foobar.com/playlist?id=1234'}<http://www.foobar.com/playlist?id=1234%27%7D>
> }"
> href="http://www.foobar.com/media/1234.flv";>Watch Now!</a>
>
> and the pre-render callback:
>
> $(".mediabox").mediabox({...}, function(e,o){
>  o.flashvars = {
>    "playback_url": "http://www.foobar.com/playlist?id=1234";
>  };
> });
>
> Using Firebug and looking at the HTML that was generated, I see the
> following:
>
> <embed ... flashvars="file=http://www.foobar.com/media/1234.flv"; ... />
>
> So, what am I doing wrong?
>
> - jake
>

Reply via email to