From 285e08b34a5fa8161f2a967a4f7dbf51bd1258d6 Mon Sep 17 00:00:00 2001 From: jcruz2us Date: Wed, 3 Sep 2014 18:53:35 -0700 Subject: [PATCH] track the ad skip event --- videojs.vast.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/videojs.vast.js b/videojs.vast.js index b9b1cbe..28293e7 100644 --- a/videojs.vast.js +++ b/videojs.vast.js @@ -183,6 +183,7 @@ skipButton.onclick = function(e) { if((' ' + player.vast.skipButton.className + ' ').indexOf(' enabled ') >= 0) { + player.vastTracker.skip(); player.vast.tearDown(); } if(Event.prototype.stopPropagation !== undefined) { @@ -267,4 +268,4 @@ }; vjs.plugin('vast', vastPlugin); -}(window.videojs, window.DMVAST)); \ No newline at end of file +}(window.videojs, window.DMVAST));