
Loading Playlist Stopped Working
Hello,
In my project I have been dynamically loading files into a playlist and then loading the playlist itself into JWPlayer. For some unknown reason, without any changes being applied to the page , the loading of the playlist no longer works and the displayed playlist is broken. It should be noted that this page did, without any doubt, work well in the past and was even tested by our QA team.
Did something change in Jwplayer recent versions that could cause this problem?
I'm accessing the could-stored version directly, thus are version is always up to date.
Sadly I can't send a direct link, because the relevant pages are accessible only through user login. hOwever I'll try to explain the process of loading the playlist into Jwplayer.
The setup of the player is:
jwplayer("myVideoPlayer").setup({
file: [LINK to default file],
skin: "bekle",
logo: { file: [LINK],
link: null,
hide: true,
margin: 0
},
listbar: {
position: 'right',
size: 175
},
sharing: {
link: "http://MEDIAID"
},
abouttext: "PlaySight",
aboutlink: [LINK],
ga: {},
width: 945,
height: 542
});
The information about all the loaded files are stored in three arrays: FilesPathsArray[], SessionNamesArray[] and ShareURLsArray . The information is extracted into a playlist in the following loop:
var playlist = new Array();
for (var i = 0; i < FilesPathsArray.length; i++) {
var newItem = {
file: FilesPathsArray[i].toString(),
title: SessionNamesArray[i].toString(),
image: [link],
mediaid: ShareURLsArray[i].toString()
};
playlist.push(newItem);
};
jwplayer("myVideoPlayer").load(playlist);
Regards,