> I was under the impression that this would override the default
> mp3Player and flvPlayer options:
>
> $(document).ready(function(){
>         $('a.media').media();
>         $.fn.media.defaults.flvPlayer = '/misc/mediaplayer.swf';
>         $.fn.media.defaults.mp3Player = '/misc/mediaplayer.swf';
>
> });
>
> Unfortunately, neither that, nor specifying the player with metadata
> and the metadata plugin were able to successfully override the default
> of "mediaplayer.swf" so I would get a 404 upon page load.


You need to override things before you invoke media:

$.fn.media.defaults.flvPlayer = '/misc/mediaplayer.swf';
$.fn.media.defaults.mp3Player = '/misc/mediaplayer.swf';

$(document).ready(function(){
    $('a.media').media();
});

Reply via email to