diff --git a/videojs.vast.js b/videojs.vast.js index 42f8077..ad64c37 100644 --- a/videojs.vast.js +++ b/videojs.vast.js @@ -55,8 +55,8 @@ player.vastTracker = new vast.tracker(ad, linearCreative); player.on('canplay', function() {this.vastTracker.load();}); player.on('timeupdate', function() { - if (isNaN(linearCreative.duration)) { - linearCreative.duration = this.duration(); + if (isNaN(this.vastTracker.assetDuration)) { + this.vastTracker.assetDuration = this.duration(); } this.vastTracker.setProgress(this.currentTime()); });