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

How to change poster onComplete without loading a new video


Hello,

I see this a lot, and I understand there's no way to natively separate the start poster from the one shown onComplete.

I was wondering how to use the API in order to do that.

I'm aware of this:

jwplayer().load({
file: "originalvideofile.mp4",
image: "newimage.jpg"
});

but what I get when doing that is not the image but an auto-starting video (the same one, because I'm using a single video and not a playlist). Is there a way to keep the image on and not start the video?

Thanks

5 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Given the way the player currently operates, there is no way to differentiate a poster image at the start from a poster image at the end. You may be able to use your load() API call in the above example, but you’ll also need to seek to the end of the content with the new playlist object. So you can potentially do something like:

jwplayer().seek(jwplayer().getDuration());

tweizer

User  
0 rated :

Thanks!

What if the video changes from page to page. Is there a way to seek to the end without setting up the exact time?

tweizer

User  
0 rated :

sorry... just realized what @Andrew suggested is exactly what I'm looking for

tweizer

User  
0 rated :

This still doesn't work, as the video loads and just auto-starts. If I automatically pause it, it shows the first frame of the video.

What's the simplest way to access the API and display a custom image or an overlay?

Thanks,
Tomer

Andrew

JW Player Support Agent  
0 rated :

Hi Tomer,

There isn’t a way to swap out a separate poster image here. Can you explain what the issue is with the current workaround that I’ve offered? Additionally, is it possible to provide a link to a page where you’re attempting to perform this?

This question has received the maximum number of answers.