OK, if anyone interested, I changed the buildPlaylist method adding the regexp that could modify the src.
The fix could be applied also on the href attribute (I think that you could pass *[src|href] as the selector, for example).
The fix could be applied also on the href attribute (I think that you could pass *[src|href] as the selector, for example).
function buildPlaylist() {
wrap.empty();
$.each(self.getPlaylist(), function() {
wrap.append(toString(this));
});
$.each(wrap.find("img"), function() {
this.src = this.src.replace(new RegExp("^" + location.protocol + '//' + location.hostname + '.*/http'), 'http');
});
bindClicks();
}