We have followed your instructions and example from https://support.jwplayer.com/customer/portal/articles/1433647
We generate the URL using the PHP below but no matter how long we set the expiry for it always says "Permission Denied" in the player.
What am I doing wrong?
function get_signed_url($path,$secret,$timeout,$domain) {
if($timeout) {
$expires = time() + $timeout;
} else {
$expires = time() + 3600;
}
$signature = md5($path.':'.$expires.':'.$secret);
if($domain) {
$url = 'https://'.$domain.'/'.$path.'?sig='.$signature.'&exp='.$expires;
} else {
$url = 'http://content.bitsontherun.com/'.$path.'?sig='.$signature.'&exp='.$expires;
}
return $url;
};
echo get_signed_url('wyMJgZhF-1hrYSmZC.html','REMOVED',36000000,'content.jwplatform.com/players');
↧