[jQuery] Media Plugin - unable to overwrite default options
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.
Could somebody shed some light on this for me, what am I missing?
I ended up just hard-coding it in the plugin source for now... :/