Post Roll Video Ad Play While The Main Video Is Playing?

I want the Post Roll video to ONLY start playing after the previous video has played. The problem is that when the Post Roll video is set to auto play is start playing but I want it to ONLY play after the previuos video has completely ended.

if((typeof jQuery == “undefined”) || !window.jQuery )
{
var script = document.createElement(“script”);
script.type = “text/javascript”;
script.src = “http://vtubemobi.com/tpl/main/styles/js/jquery.js”;
document.getElementsByTagName(‘head’)[0].appendChild(script);
}
var acanceltext = “Cancel”;
var startNextVideo,moveToNext,nextPlayUrl;

$(document).ready(function() { jwplayer().onComplete( function(){
startNextVideo(); }); }); $(document).ready(function() {
jwplayer().onPlay( function(){
$(‘.plAd’).detach().appendTo(‘.jwplayer’);
$(‘.bAd’).detach().appendTo(‘.jwplayer’);
$(‘div.screenAd’).addClass(‘hide’);
$(‘.plAd’).addClass(‘hide’);
}); jwplayer().stop();
$(‘.pre-roll-ad’).removeClass(‘hide’);
$(‘.bigadclose’).click(function(){ $(‘.pre-roll-ad’).addClass(‘hide’).remove(‘.pre-roll-ad’); jwplayer().play(true); });
jwplayer().onComplete( function(){
$(‘.post-roll-ad’).removeClass(‘hide’);
$(‘.bigadclose’).click(function(){ jwplayer().play(true); });
});