diff --git a/src/ads.js b/src/ads.js index b930785..34ddce6 100644 --- a/src/ads.js +++ b/src/ads.js @@ -161,6 +161,7 @@ class VideoAds { if (ad.isLinear()) { // For a linear ad, a timer can be started to poll for // the remaining time. + // TODO: We could use this to add a skip ad button intervalTimer = setInterval(() => { // Currently not used // const remainingTime = this.adsManager.getRemainingTime(); diff --git a/test/video.test.js b/test/video.test.js index 520ce02..266dc86 100644 --- a/test/video.test.js +++ b/test/video.test.js @@ -202,9 +202,9 @@ describe('Video', () => { }); it('should return the progress of the video as a percentage', () => { - video.videoEl.duration = 100; - video.videoEl.currentTime = 30; - video.getProgress().should.equal(30); + video.videoEl.duration = 200; + video.videoEl.currentTime = 50; + video.getProgress().should.equal(25); }); });