Display related videos
Hello,
I would like to implement related videos to be display on mi page with JWPlayer. My basic setup looks somethink like this:
jwplayer("myElement").setup({
playlist: [{
file: "http://172.0.0.1/myfile.mp4",
title: "This is my file"
}],
related: {
file: 'http://172.0.0.1/related.json',
onClick: "link"
}
});
as per documentation. The JSON file is a valid playlist definition with 3 as it should be.
However, when I run this code, I get no related videos what so ever.
By using debugger, I found out that there is a line in related plugin source code, that says:
"Not enough items in the playlist (need at least 2)"
And inspecting further I found out that it detects number of items in the original playlist, not in JSON with related videos.
This seems like a bug to me, because there is no reason what so ever why this plugin should not work with only one item in playlist and several in related JSON.
Can anyone point me what to do with this?