Hello first post here. Hope I've gone about this the correct way :) I am using jquery media to play flv files. The full url "www.foo.com.au/movie.flv" is used which causes jquery media to attempt to download the ".au" audio file plugin (due to the presence of the ".au" in the url). I modified the following function in jquery.media.js to strip out the leading server/folder components of the url leaving only the file name which fixed the problem for me.

$.fn.media = function(options, f1, f2) {
        .
        .
        .

        // Strip out the server/folder component to src url, leaving only the filename component.
        componentList = o.src.split('/');
        fileName = componentList[componentList.length-1];

        var r = getTypesRegExp();
        var m = r.exec(fileName) || [''];

        .
        .
        .
};

Luke

Comments

kulfi’s picture

Same issue in 5x

mustardman’s picture

I think this will fix an issue I am having. When I manually remove the mydomain.com part of the url then I can get this to work. I tried adding the code above to jquery.media.js file but can't seem to get it to work. Does anyone have a complete working file I can use?