$(function() { var flowplayer = $('.flowplayer').flowplayer(); $('.flowplayer').one('load', function(e, api, video) { e.preventDefault(); api.loading = false; var seconds = 5; var timer = setInterval(function() { $('#loading').html('Your video will start in ' + seconds + ' seconds..'); seconds--; if (seconds === 0) { clearInterval(timer); flowplayer.load(); } }, 1000); }); })