Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

CloudFront & S3 Restricted Access via Signed URL


Using Amazons CloudFront & S3 Restricted Access via Signed URL, I can access content directly through the browser via a link directly to a MP4. Providing the same link for JW player does not allow it to play the video. Docs (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html )

The resulting signed link looks something like this:

https://dtn0cj8sdsdffhx.cloudfront.net/uploads/video/content/2/origin_Untitled_3.mp4?X-Amz-Expires=600&X-Amz-Date=20160713T204547Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=APKAIDFJDKND2ZHRSA/20160713/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=74669898562169b9ccc6ef087ccd2c93410269bd46d387177f9ddfc27e89af17&Expires=1468446347&Signature=fzv~UYusoHNxrjnTjC1k-byeAGpEYjt6gq6NhiFsdfsdfsUegQcfDcw6S7HBKBx6XWB2DmXHEiPYv5K5JT~dhJi~GJVJoPo0jj-sdfsdfssfdsfs~IWt2AFslEFZ6C~w~dsdfsdfsdf~XbhT47YfMfY9m8nB-Wi99Im~raSsPjOEDIPQbDxzhF4OqqjoVO77gsRRK-pR3iB76R0aENeObhft0FaUJ1PX0ZB0RRIlvZFE-aJMwIzXbDPL8~bV4iCmk17gvk7hNC6bkZ6-myn8tuPlg0bWsdfsdXGJssFF8BOoeY4KO-LegFqihm3YlrsFyLqT5VLSDPA__&Key-Pair-Id=APKAIDFJDKND2ZHRSA


In the console, the ping.js script says "no media_id found", which i have seen before -- It should not be accessible unless the full link is followed with the signed url.

When trying to play the video, I get an "error playing media" in the console,

MediaError --> Code 4 -- Full code here: https://gist.github.com/cdesch/a89ac1aefbe088fedafe0d2ff273847b

My assumption is that JWPLayer is going out and following everything in the link up to the params. So it would be reading this https://dtn0cj8sdsdffhx.cloudfront.net/uploads/video/content/2/origin_Untitled_3.mp4 then stoping at the ? and returning that it cannot find content.

My question is -- > is this what JWplayer is doing? Is there a way to configure JWPlayer to read the whole link? Or is there a specific parameters in JWplayer to read content behind signed URLS?

Thanks

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

My name is Alex and I am one of the Team Leads of the Support Team at JW Player. I will be more than happy to assist you with your questions.

Does your signature rotate at all? Whenever I try to access the URL, even in the browser, it is showing a DNS error for https://dtn0cj8sdsdffhx.cloudfront.net. I do know that your expiration timestamp expired yesterday but that would only give me a 403 Forbidden response, but this URL is not even resolving no matter where I try.

Please advise.

This question has received the maximum number of answers.