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

JWPlayer v7.1 using load function


I have a issue in using the load function using v7.1 when a video has completed.

The function that I am using to load after a video has completed is:

onComplete: function()
{
jwplayer('div1').stop();
jwplayer('div1').load({image:'images/newyear2.jpg',sources:[{file:'blank.mp4'}],logo: {file: 'images/smlogo.png'}}).setControls(false);

}
1. the image#2 loads
2. the logo does not

Can anyone suggest a way to have the logo also load?

I am not 100% sure if using jwplayer('div1').stop(); is needed and think that it will onload everything including the logo.

thanks
willie

3 Community Answers

Todd

JW Player Support Agent  
0 rated :

load() can only accept the contents of a playlist: {} block or URL as a parameter, so our player is ignoring your attempt to load a new logo. One potential solutuon would be to use a new .setup() instead of .load()

wmeier

User  
0 rated :

Hmmm...thinking.

At least now, the reason as to why it doesn't work has been identified which I honestly didn't know.(guess this old man can still learn new tricks; right?)

Agreed that this may work and to be honest a more simpler solution would be to embed onto the image.

The logic I was thinking off that since it was possible to load a image and a different playlist.image then this should have worked.(but truthfully this was with v5.x)

ce la vie

Alex

JW Player Support Agent  
0 rated :

Hi, Willie.

We’re glad to hear this is resolved for you.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.