
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>