
Slideshow in Version 6.x
Hi,
Under version 5.8, I was able to create an image slideshow using playlists and the following script:
playPreShow: function playPreShow(mainPlayList) {
var JWPlayLists = new Array(mainPlayList.length);
for (var index = 0; index < mainPlayList.length; index++) {
JWPlayLists[index] = {};
JWPlayLists[index].file = mainPlayList[index].File;
JWPlayLists[index].title = mainPlayList[index].Title;
JWPlayLists[index].duration = parseInt(mainPlayList[index].Duration.toString());
JWPlayLists[index].image = mainPlayList[index].Image;
if (mainPlayList[index].MediaTypeID === 2) {
JWPlayLists[index].provider = 'image';
}
if (mainPlayList[index].MediaTypeID === 1) {
JWPlayLists[index].provider = 'sound';
}
if (!!mainPlayList[index].URLLink) {
JWPlayLists[index].link = mainPlayList[index].URLLink;
}
}
jwplayer("mainVideo").stop();
jwplayer("mainVideo").load(JWPlayLists);
jwplayer("mainVideo").play(true);
}
The playlist format for version 6.x doesn't seem to support images in the playlist. Or does it ? If yes, can you provide an example ? Thanks.