Hi ! I just registered a free account and im currently trying to get URL signing working, but i always get permission denied when i try to watch a video with a signed url.
I have set "secure content" to "secure video dl and player embeds".
this is the php script im using:
<?php
function get_signed_player($videokey,$playerkey) {
$path = "players/".$videokey."-".$playerkey.".js";
$expires = time() + 3600;
$secret = "my secret key, 24 letters";
$string = "$path:$expires:$secret";
$signature = md5($string);
$url = 'http://content.bitsontherun.com/'.$path.'?exp='.$expires.'&sig='.$signature;
return $url;
};
$link = get_signed_player("sPGcp7Kk","ePWhdD6K");
echo "<script type="text/javascript" src="$link"></script>";
?>
I triple checked the secret key, the player and video key.
Any help is appreciated!
I don't see anything real obvious. Some things to look out for: is the output of the md5sum lowercase? (It should be).
Is your time and timezone configured correctly so your expire time is in UTC and not in local time?