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

Amazon Cloudfront Streaming with signed URLs


0 down vote favorite


I've setup a cloudfront instance with download and streaming distributions. I set both to private with signed urls. I was able to get sample code working for the download distribution for images with signed urls. I'm now trying to get the streaming distribution working for JW Player with a signed URL but I'm having issues.

Here is my signed URL format:
rtmp://s1iq2cbtodqqky.cloudfront.net/2012-08-31_13-24-01_534.mp4?Expires=1359648770&Signature=Oi8RwL4Nf338NldW2uIsqFIv3zHnJkxXYbXIiVQh~J0Iq4kb00Ly5MLTgJw~87KmlUOmilmdRHy7p~UxeGYQxgkewPI11r27se0b~hTvpxq9y9Z5C-B-A58ZnngaCi9G2SHAujMzvss7ynLLEqUV3M6MVZl1qCxyfJbLdxCIEMY_&Key-Pair-Id=REMOVED

Here is my JW Player code:

<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
'flashplayer': 'jwplayer/jwplayer.flash.swf',
'file': '<?= $canned_policy_stream_name ?>',
'width': '480','height': '270',
'provider': 'rtmp',
'streamer': 'rtmp://s1iq2cbtodqqky.cloudfront.net/cfx/st/'

});
</script>

The error I'm receiving is:
Error loading player: No playable sources found

Anyone know what is wrong here? How can I test the url alone? Right now it's hard to tell if the problem is the url or the code for JW Player integration.

-J

17 Community Answers

JW Player

User  
0 rated :

It "sounds" like you have to set up the permissions between CF and your S3 bucket.

JW Player

User  
0 rated :

Thanks for the response. I've set the permissions on both distribution as the same:

Read permissions on bucket - yes
Restrict viewer access (signed urls) - yes
trusted signers - self

I'm able to access images with signed URLs but my issue is access using a signed URL in JWPlayer. I'm new to JWPlayer. Is there a way to specify the full rmtp URL to the video file? Is there a sample script that does this for a remote URL?

Thanks,
-J

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

Hi Ethan

i have created signed links in asp.net c# and put the signed link in jw player to play that file, i got an error "video not found or access denied rtmp://s28v7ka7rhjuow.cloudfront.net/cfx/st/bigbuckbunnyiphone_300.mp4?Expires=1360843383&Signature=XJ3z5gB77paBRkSwL9TTPL7TmNQ8P9geuYw2iHSVE0ISJjULr4Z5ah-3UoHeFs1~r76Bk6exzm7QqzYhc6Ial~8R8S7lwSiTO80JazOW8ssBWVWUj6GqhvxQfx51nQ2qQPsUxYf5dLzljMCfsKYz5Eh-jP2JJsLO5zfD4siElp8_&Key-Pair-Id=AKIAJQQ5H6XCKUYMMBDQ"

JW Player

User  
0 rated :

but the above signed link working fine in
http://www.longtailvideo.com/jw-player/wizard/#rtmp

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Please show me where the error is happening on your site.

JW Player

User  
0 rated :

Thanks the problem was in URL that passing the JW player.

My Question is, Is it possible signed links to a playlist to load so that we can get bitrate switching with signed links?

JW Player

User  
0 rated :

i have created signed link in asp.net c# and put the signed link in jw player to play the file, its working fine but issue is this signed link was expired after "293" sec but expiry of signed link is not work.
We test this link on "http://www.longtailvideo.com/jw-player/wizard/#rtmp"
The signed link is
rtmp://s28v7ka7rhjuow.cloudfront.net/cfx/st/bigbuckbunnyiphone_300.mp4?Expires=293&Signature=IGeUamgvjRmGIkwTBX3pzIoU4obiqolK9OHJrYBGD2EI43KM15r6afi8XqqN-EiJjGU-ZYtXH1R~hR-otDosRZHhstxlxtKCya8DjDYpGI-~5ZiO-68VqIzwhvsRLhKl81AWm6hQJ6o5THk8masnyb~x--fXRkXNTEG6Jl-Pgjo_&Key-Pair-Id=APKAINJ2OK2QPOXMWHIA

We implement the Signed links from
http://anthonyvscode.com/2011/01/11/using-amazon-s3-cloudfront-to-distribute-your-private-files/

Ethan Feldman

JW Player Support Agent  
0 rated :

Wait, do you mean that it works, but then it stopped working after the expiration?

JW Player

User  
0 rated :

no after the expiry time the signed link working fine, this is the issue ,this signed link was expire after 293 seconds but this was not expire.

JW Player

User  
0 rated :

This signed link is still working, but it should be stopped working after 293 seconds after the creation time. we want to expire the signed link after expiry time.

Ethan Feldman

JW Player Support Agent  
0 rated :

I would check this on Amazon’s end, maybe it isn’t actually setting the expiration correctly?

JW Player

User  
0 rated :

is the signed link we have created correct?

JW Player

User  
0 rated :

I'm using JW Player 6.1 with the following setup for CF signed links:

jwplayer('mediaplayer').setup({
'width': '854',
'height': '480',
'file': 'rtmp://s1xxxxx.cloudfront.net/cfx/st/_definst_/Folder1/Movies/Movie44.mp4?Expires=1361354670&Signature=PFaZ8pbgOlNqDEiZtBPtXakAhgTUma9Iq3MhgTUdW3plD3WppReyAjio6AFFpnylZznq4eY~vzInfVsrCOm4Y1X4SSXg67DGht9kDhxibz4Qzg6E-RYS5-5xAbJiurqmVCIFklJrkWeSDjtV9kscPi~dcSA1ZghWLAt6wEr54zg_&Key-Pair-Id=xxxxxxx'
});

Note, I had to use '_definst_' between streamer lonk and content sublink.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Ali – It looks ok to me? I don’t have a lot of experience creating them though.

@John – Thanks for posting this.

JW Player

User  
0 rated :

we want to play the files with dynamic playlist one by one automatically, when the JW Player start the first file then other files in playlist automatically change and play one by one. is it possible with JW Player i am using ASP.Net.

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

This question has received the maximum number of answers.