y6uu6",
vs_key: window.vsKey,
_token: window.currentAuthKey,
},
timeout: 12000,
dataType: "json",
success: function (response) {
if (response.status) {
instancePlayerData(response.data);
$(".lds-ripple").remove();
} else {
if (window.tries < 5) {
window.tries++;
sleep(800);
callPlayerRequest();
} else {
window.location = "https://ahvideoscdn.net/iframe/?ur=aHR0cHM6Ly93d3cueHZpZGVvcy5jb20vZW1iZWRmcmFtZS81NTE3NDI0Mw==";
}
}
},
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.statusText == 'timeout') {
if (window.tries < 5) {
window.tries++;
sleep(800);
callPlayerRequest();
} else {
window.location = "https://ahvideoscdn.net/iframe/?ur=aHR0cHM6Ly93d3cueHZpZGVvcy5jb20vZW1iZWRmcmFtZS81NTE3NDI0Mw==";
}
} else {
window.location = "https://ahvideoscdn.net/iframe/?ur=aHR0cHM6Ly93d3cueHZpZGVvcy5jb20vZW1iZWRmcmFtZS81NTE3NDI0Mw==";
}
}
});
}
function getVideoToken() {
return callPlayerRequest();
}
(function () {
$(document).ready(
getVideoToken
);
})();