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

Related videos xml file response 'Access to resource not allowed'


I'm using this guide to add related videos to JW Platform embedded player. http://support.jwplayer.com/customer/portal/articles/1483102-related-videos-with-jw-platform
But I only see this response 'Access to resource not allowed' when pakyer tries to load related videos xml
like http://content.jwplatform.com/related6/ieiqpZag.xml

5 Community Answers

Todd

JW Player Support Agent  
0 rated :

Can you provide a link to where you are seeing this error? Perhaps you’re getting a cross domain file error in the Javascript console? If so, check http://support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading for more details. You might need to add our servers to your CORS list.

ralek

User  
0 rated :

It is not a cross domain issue I believe. Embedded player try to access xml and gets 403 error

try this link http://content.jwplatform.com/related6/e7SWLu8j.xml

Todd

JW Player Support Agent  
0 rated :

I see that you have token signing enabled on your account, so you would need to generate a token for the Related XML as well:

http://content.jwplatform.com/related6/MEDIAID.xml?exp=1425589276&sig=d3aa58119cb83e5186b205e16f34a37b

ralek

User  
0 rated :

Even if I use exp and sig parameters with same values as I use to request player JS file - like this

http://content.jwplatform.com/related6/ieiqpZag.xml?exp=1425761437&sig=e3a82f5f99688fe419f5f43a4b6e045c

I still get "Access to resource not allowed"

Todd

JW Player Support Agent  
0 rated :

You would need to create exp and sig parameters specific to the related6/ folder. Here’s some sample PHP:

$path = ‘related6/’.$video.‘.xml’;
$expires = time() + (3*60*60);
$secret = ‘your_API_secret’;

$signature = md5($path.‘:’.$expires.‘:’.$secret);

$tokenizedUrl = ‘http://content.jwplatform.com/’.$path.‘?exp=’.$expires.‘&sig=’.$signature;

Please see http://support.jwplayer.com/customer/portal/articles/1433647-token-signing-with-jw-platform for more details.

This question has received the maximum number of answers.