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

jwplayer doesn't work .getPlaylist is not a function


Hi everyone,

I try to use jwplayer (6.2 version) on a website. It works well on my computer and some others but it doesn't work on ohter. I tried lot of things like install / reinstall / update Flash etc...
The error is still the same:
Uncaught TypeError: d(...).getPlaylist is not a function
at l.model.j.setPlaylist (jwplayer.html5.js:153)
at Object.method (jwplayer.html5.js:193)

HEre my sample code:

$(document).on('ready', function() {
$('.videos').each(function(){
var movie = $(this);
jwplayer(movie.attr('id')).setup($.extend({}, jwplayerDefault, {
file: movie.attr('data-url'),
image: movie.attr('data-image'),
width: '100%',
height: 150
}));
});
});


<div class="col-xs-12 logo video-box no-padding ">
<div id="{{ oVideo.getId() }}" class="videos" data-image="{{ oVideo.getPicto() }}" data-url="{{ oVideo.getPath() }}" data-image="{{ oVideo.getPicto() }}">Loading the player...</div>

</div>

I have checked that any argument was existing (and it is).

Any help?

2 Community Answers

Todd

JW Player Support Agent  
0 rated :

JW Player 6.2 is very old. Can you try the same code in the most current version (7.9.3) and see if you get the same error?

Sebastien

User  
0 rated :

Hi and thank you for your answer. I'll check with the owner of the website to see why he used this version and if I can upgrade it.

This question has received the maximum number of answers.