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

Related videos block not displaying


Hi,
I have just switched to jwplayer7, and try to get the related block, but with no success.

This is a example of my code, seeing here http://manioc.org/client/jwplayer.html .
What am I doing wrong ?

<div id="embedV11090">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("embedV11090");
playerInstance.setup({
file: "http://www.manioc.org/gsdl/collect/lbirba-testvide/index/assoc/V11090.dir/bobm-1105-02.flv" ,
width: 640,
height: 360,
related: {
file: "http://www.manioc.org/client/related.xml",
onclick: "link",
oncomplete: 'autoplay',
autoplaytimer: 10
}
} ); </script>

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

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

In looking in the browser’s console, I am seeing this message:

XMLHttpRequest cannot load http://www.manioc.org/client/related.xml. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://manioc.org' is therefore not allowed access.

What this means is that www.manioc.org it not set up properly for manioc.org to access certain resources on it. Obviously, they are both the same server, but having the www added to the URL matters. For example, if you went to http://www.manioc.org/client/jwplayer.html instead, the Related overlay will appear.

For information on how to resolve this issue, please see our Crossdomain File Loading support article.

Please let me know if you need any more help or have any other questions.

Thank you!

scduag

User  
0 rated :

Hi Alex,

thanks for this quick answer.

It seems like there's a weird bug cause like you pointed it, the related block works fine on the exemple page when the www are in the url.
I don't get it cause I've got a crossdomaine.xml file on my server, but I'll look into it.

Another thing, If you look at this page : http://www.manioc.org/fichiers/V15081 , the related block works fine, but on another page, like this one http://www.manioc.org/gsdl/cgi-bin/library?e=d-11000-00---off-0fichiers--00-1----0-10-0---0---0direct-10---4-------0-1l--11-fr-Zz-1---20-about---00-3-1-01-0-0-11-1-0utfZz-8-00&a=d&cl=CL1.21, where the same video is embed, the icon is visible, but when clicking on it, there's nothing, and I've got this message in the browser's console :

TypeError: L is undefined
...unction v(b){var c={visible:S,method:b,relatedCount:Math.min(P.length,L.maxthumb...
related.js (ligne 1, col. 3515)

Could you take a loot a it ?

Alex

JW Player Support Agent  
0 rated :

Hi, there.

I am able to reproduce the issue on your page, but I was unable to do so on a test page that I made, which I’ve linked below, in which I’ve embedded 22 players pointing to 22 separate related manifests. At this point, I am thinking that your issue may be related to something else on your page conflicting with it. I would suggest trying to reproduce the issue on a clean reproduction page with no unnecessary JavaScript. I have linked a support article below with tips on how to set one up.

Test Page
Troubleshooting – Creating a Reproduction Page

Please let me know if you need any more help or have any other questions.

Thank you!

scduag

User  
0 rated :

Hi Alex,

you made a very good point, it seems there's a conflict with another script on my page.
It looks like I have found it, and will be able to make it work.

Thank you very much for your help.

Alex

JW Player Support Agent  
0 rated :

Not a problem!

This question has received the maximum number of answers.