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

iFrame embed with URL signing


According to the documentation there are two ways to embed videos:
1. Javascript
2. iFrame

For securing the videos we are using URL signing.
We use exactly the same function to generate the signature keys for the Javascript and iFrame embed.

However, we are getting a "Permission Denied" error with the iFrame videos, the Javascript embed works just fine.

Here is the url that is being created for script tags:
<script type="text/javascript" src='http://content.bitsontherun.com/players/cPxGRsdl-a5QrTBqM.js?exp=1372076580&sig=9c16c5fc7338a45828fb3dd3a3979a67'></script>


And here is the url that is being created for iframe tags:
<iframe src="http://content.bitsontherun.com/players/cPxGRsdl-a5QrTBqM.html?exp=1372076580&sig=62454ea9d41c8d5aeecf838956a9b446" width="480" height="360" frameborder="0" scrolling="auto"></iframe>

Any idea why we get "Permission Denied" error in the case of iFrame embed?

4 Community Answers

Remco van Bree

JW Player Support Agent  
0 rated :

I’m afraid I can’t tell based on the output, chances are you’re feeding an incorrect path into the signing algorithm or something along those lines.

JW Player

User  
0 rated :

It looks like the path is the main issue - this is the content path that is the input to the md5 function to generate the signature:
md5(CONTENT_PATH:EXPIRATION_STAMP:ACCOUNT_SECRET)

For Javascript embed, the path is set to "players/7xMPnf7z-a5QrTBqM.js"
This works fine.

For iFrame embed, the path is set to "players/7xMPnf7z-a5QrTBqM.html"
This gives a permission denied error.

I tried using the signature generated with the ".js" path, with the iFrame embed, but that doesn't help either.
What should I set the path to in the case of iFrame embed?

Thanks!

Remco van Bree

JW Player Support Agent  
0 rated :

That should be correct. What happens if you change the path to “previews/cPxGRsdl-a5QrTBqM” ?

JW Player

User  
0 rated :

This worked! Thanks a lot for your help!

This question has received the maximum number of answers.