La función que me genera la URL es está:
function generateURL(){
$.ajax({
url: "verify.php",
type: "POST",
data: {itemid: 1914},
cache: false
}).done(function(response) {
//alert(response);
var ajaxResponse = $.parseJSON(response);
if (ajaxResponse.status=="error"){
$("#errorverify span").html(ajaxResponse.message);
$("#errorverify").removeClass("hidden");
}
else if (ajaxResponse.status=="success"){
if (filetype=='mp4'){
window.location.href = fileurl + '&c=' + ajaxResponse.code;
}
else {
var popupfile = window.open("play.php?c=" + ajaxResponse.code, "Download", "width=100, height=100");
}
}
});
function generateURL(){
$.ajax({
url: "verify.php",
type: "POST",
data: {itemid: 1914},
cache: false
}).done(function(response) {
//alert(response);
var ajaxResponse = $.parseJSON(response);
if (ajaxResponse.status=="error"){
$("#errorverify span").html(ajaxResponse.message);
$("#errorverify").removeClass("hidden");
}
else if (ajaxResponse.status=="success"){
if (filetype=='mp4'){
window.location.href = fileurl + '&c=' + ajaxResponse.code;
}
else {
var popupfile = window.open("play.php?c=" + ajaxResponse.code, "Download", "width=100, height=100");
}
}
});