Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

URL Signing

$
0
0
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');

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>