Needs review
Project:
jQuery Media
Version:
6.x-1.4-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2008 at 23:53 UTC
Updated:
21 Jan 2009 at 05:39 UTC
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
Comment #1
kulfi commentedSame issue in 5x
Comment #2
mustardman commentedI 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?