In the following JS, I have triggered a console message 'Finished' at the completion of a Vimoe video. Using the same API, is there a way to trigger it not at the end of the video but at 95% of it?
jQuery(document).ready(function() {
var iframe = jQuery('iframe#vimeo');
var player = new Vimeo.Player(iframe);
player.on('ended', function() {
console.log('Finished.');
});
});