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

2 issues in Related V 7.2 Beta


If the documentation is right at http://support.jwplayer.com/customer/en/portal/articles/1409745-display-related-videos
I seem to have 2 problems testing it.

1) The autoplay does not go to the next video in the playlist like it says autoplay - Will automatically begin the next related video ( for me it just autoplays the FIRST item in the playlist)

2) JSON file does not work. If it's correct that this formatting is as described then the related dock icon does not show at all. Is the below the only content that has to be in the .json file?

{
title: "Big Buck Bunny",
link: "http://example.com/watch/28839",
image: "http://example.com/thumbs/28839.jpg",
file: "http://example.com/videos/28839.mp4",
mediaid: '28839'
},{
title: "Elephant's Dream",
link: "http://example.com/watch/8791",
image: "http://example.com/thumbs/8791.jpg",
file: "http://example.com/videos/8791.mp4",
mediaid: '8791'
}


You don't need this anymore?
<rss version="2.0" xmlns:jwplayer="https://rss.jwpcdn.com/">
<channel>

13 Community Answers

mark

User  
0 rated :

EDIT } My mistake about autoplay- I see now that the thumbnails are shuffled around and it does play next in line- I would have thought the thumbnails would stay in place and the highlight would just move over to the next thumbnail.
I would prefer it to move across but that's just my opinion

mark

User  
0 rated :

EDIT 2) Actually there is a little problem
When you click to play the first item in the related list and then it finishes, the next item played is the same item. Subsequently then it will move to the next item

Andrew

JW Player Support Agent  
0 rated :

Hey Mark,

Sorry about that. The JSON should be enclosed in some square brackets: [] I’ve just updated the documentation to reflect this.

Secondly, the feed will only increment if a video is played via autoplay. I can see if we can set the current feed position based on autoplay or manual play, but it will likely not be implemented by the 7.2.0 final launch.

mark

User  
0 rated :

The json still doesn't work for me with brackets . Must you have a link and media ID?

mark

User  
0 rated :

For example, this does not work

[
{
title: "Big Buck Bunny",
image: "https://content.jwplatform.com/thumbs/GIJ6UaH7-640.jpg",
file: "https://content.jwplatform.com/videos/GIJ6UaH7-vsWMgGIC.mp4",
mediaid: 'GIJ6UaH7'
}
]

Andrew

JW Player Support Agent  
0 rated :

Thanks again for bringing this up. This is related to the formatting of the JSON itself. All items should be in double quotes. So for example:
[{
“title”: “Big Buck Bunny”,
“link”: “http://example.com/watch/28839”,
“image”: “http://example.com/thumbs/28839.jpg”,
“file”: “http://example.com/videos/28839.mp4”,
“mediaid”: “28839”
},{
“title”: “Elephant’s Dream”,
“link”: “http://example.com/watch/8791”,
“image”: “http://example.com/thumbs/8791.jpg”,
“file”: “http://example.com/videos/8791.mp4”,
“mediaid”: “8791”
}]

Should work. Again, I’ll update the article. Thanks again for the feedback!

mark

User  
0 rated :

Still not working for me Andrew

[{
"title": "Big Buck Bunny",
"image": "https://content.jwplatform.com/thumbs/GIJ6UaH7-640.jpg",
file: "https://content.jwplatform.com/videos/GIJ6UaH7-vsWMgGIC.mp4",
"mediaid": "GIJ6UaH7"
}]

The file is being found in the browser console ( 200 OK ) - but no icon in the player

mark

User  
0 rated :

Dirty tricks of my eyes, file was not "file"
It works now. Thanks

When can we expect to be able to use playlists like this, would be cool

mark

User  
0 rated :

problem when using json related feeds

When using multiple sources mpeg dash followed by hls followed by mp4 - in that order - all browsers only play the mp4 source

If I use just a DASH source it will play

Actually I am wondering what the benefit of json is over xml or rss to be honest

Andrew

JW Player Support Agent  
0 rated :

Glad it’s working! We currently don’t have a way to pick out the best sources based on order. (Much like a playlist would) This is something that we may introduce in a future iteration, but right now, only the first source will be chosen.

Regarding JSON, developers have been favoring it over XML for a while now. It can also be handled much quicker than XML by the player. In an ideal world, we (And probably most developers) would eventually love everything to be served via JSON, so this is a small interim step towards JSON ubiquity.

Finally, regarding compatibility with JSON playlist format, we’re working on it. :)

mark

User  
0 rated :

Thanks for the information Andrew. It's good to know the future it will be better, currently I need multiple sources so I'll put it on the back burner

Andrew

JW Player Support Agent  
0 rated :

Absolutely. Thanks for being so involved with 7.2.0 so far. It’s much appreciated by the team. :)

webmaster

User  
0 rated :

I think my JSON is ok but the debug is saying: RELATED: RSS feed has 0 entries that contain title, link and image.

It keeps trying to reed an RSS but the file link has a JSON extention

This question has received the maximum number of answers.