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

Ads on Live play


I need to play an ad before the live streaming show and then need to continue the show from where it should play.

I am using SpotX ad service and added the advertisement code like this.

jwp = jwp.setup({
file: Url,

skin: '/js/jwplayer/skin/seven.css',
width: '100%',
aspectratio: '16:9',
autostart: true,

advertising: { client: 'vast', tag: '' + loc + '&cb=' + randVal + '&player_width=100%&player_height=auto' }


Now the ad is playing before the show. But after the ad, it is playing the shop from the beginning. That mean the video clip from the 0.00 time. Not from the remaining time. But if we remove the above ad code line, then the show is resuming from the time it should play without any issue.

Please, can you advise how to fix this?

Thank You!

5 Community Answers


JW Player Support Agent  
0 rated :

I would expect our player to start loading the video URL as soon as the ad ends. Does your live stream always start from 0:00 when you load it in our Stream Tester at ?

If it is truly a live stream, then the manifest will start at the current position of the video, as this is the first fragment in the manifest we request after the ad ends.

You might need to check with your streaming provider to see if they can give you a DVR stream that always starts at 0:00.


0 rated :

Thank you for the reply.

When ad stops, I need the video to play from the minute that it should play. Actually, there are 30 mins shows. So if it is 6:55:18 PM then the show should start from 25.18 min. It is working well if we do not run the ad. But it is not working and always starting from 0.00 when we run the ad from the beginning. We do not need to start it from 0.00 after playing the ad.

This is where we get the seek time and playing that where we need to play it.

jwplayer().load([{ file: Url}]);
if (parseInt(SeekTime) > 0) {;

Please, can you advise? Why is it playing from 0.00 if we play the ad?


JW Player Support Agent  
0 rated :

Hi, there.

We would need to see this in action to be able to troubleshoot. Can you please provide a link to a reproduction page that is showing the issue but doesn’t contain any third-party JavaScript?

Thank you.


1 rated :


I have not used any third party java scripts.
Please, can I send you the page link as a private message without posting it in public? But I can send you all other details here.

Thank You!


JW Player Support Agent  
0 rated :

Hi, there.

Sure thing. You can email it to Just please make sure to reference Case # 80524 in the subject line of your email.


This question has received the maximum number of answers.