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

Player issue


Hello,

I have used jwplayer. I am adding all youtube video links. I only see first video, no thumbnail for other videos in list also video does not play. I see error -

Failed to load resource: the server responded with a status of 403 (Forbidden) http://www.youtube.com/iframe_api
CAPTIONS(TypeError: Cannot read property 'playVideo' of null)

This is the code I am using.

<div id="player" style="width:600px;height:500px;"></div>
<script src="http://jwpsrv.com/library/KzQ01ABSEeSeXSIACyaB8g.js"></script>
<script type="text/javascript">
jwplayer('player').setup({
playlist: [
{
file: "https://www.youtube.com/watch?v=uM8BD1xDfqc",
},
{
file: "https://www.youtube.com/watch?v=cK669Xsj5oc",
},
{
file: "https://www.youtube.com/watch?v=7e6ih47lFGw",
},
{
file: "https://www.youtube.com/watch?v=VylhIJF50sI",
},
],
autostart: 'true',
shuffle: 'true',
dock: 'false',
height: '500',
width: '600',
listbar:{ position: 'bottom', size: '180',layout: '' }
});
</script>

4 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

I just checked your code out locally and it seems to work fine.

ben1189

User  
1 rated :

I try to run this with no success:

the problem occurs only in html5 mode, when set "primary:flash" there isn't any problems.

flash:
http://jsfiddle.net/UAR3U/23/show
html5:
http://jsfiddle.net/UAR3U/22/show

ben1189

User  
0 rated :

Open console and click the 2nd, 3rd video to see the error

Ethan Feldman

JW Player Support Agent  
0 rated :

Hm, I do get a console error, but it plays fine, however.

This question has received the maximum number of answers.