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

Related videos is not displayed


Hello, pleace help me.
English is I think a little bit wrong, please forgive me.

I write source as follows.
However, the mark of related videos in the top right corner of the player does not appear.

var playerInstance = jwplayer("container");
 playerInstance.setup({
 file: "http://example.com/video.mp4",
 image: "http://example.com/image.jpg",
 width: '100%',
 aspectratio: '16:9',
 startparam: 'start',
 primary: 'flash',
 autostart: true,
 tracks: [{
 file: "http://example.com/track.vtt",
 kind: "thumbnails"
 }],
 related: {
  file: "http://example.com/related.rss",
  onclick: "link",
  oncomplete: "show"
 }
});


But, when the A to B, will be displayed.

oncomplete: "autoplay"

Why is this?


I do not want to autoplay.
What there is a good solution.

3 Community Answers

Donni

JW Player Support Agent  
0 rated :

Can you provide a link to a reproduction page so I can inspect your code on a live page?

Elly

User  
0 rated :

Thank you for reply.

I'm sorry......
Play page will not be able to show.

Apparently, there is no problem in the case of oncomplete: "autoplay",
In the case of oncomplete: "show" and oncomplete: "hide", it has come out with the error "RELATED : Related feed entries do not contain the necessary data.".

In addition, we have a little change in the following manner.

related: {
 file: "http://example.com/related.json",
 onclick: "link",
 oncomplete: "show",
}


and json page is output in the following manner.
[
{
file: "http://example.com/video1.mp4",
image: "http://example.com/thumb1.jpg",
title: "my video1"
},
{
file: "http://example.com/video2.mp4",
image: "http://example.com/thumb2.jpg",
title: "my video2"
}
]

Donni

JW Player Support Agent  
0 rated :

Take a look at this demo page I made for you. Does it help?

This question has received the maximum number of answers.