From 45830a73c6afd058531d722f8b152f24396ebad6 Mon Sep 17 00:00:00 2001 From: Interactive Media Ads Developer Relations Date: Thu, 22 Aug 2024 11:41:40 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 666431900 --- vpaid/nonlinear/VpaidNonLinear.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vpaid/nonlinear/VpaidNonLinear.js b/vpaid/nonlinear/VpaidNonLinear.js index 6d4eb66..19576ca 100644 --- a/vpaid/nonlinear/VpaidNonLinear.js +++ b/vpaid/nonlinear/VpaidNonLinear.js @@ -397,11 +397,7 @@ const VpaidNonLinear = class { * @return {number} The time remaining in the ad. */ getAdRemainingTime() { - const date = new Date(); - const currentTime = date.getTime(); - const remainingTime = - this.attributes_.duration - (currentTime - this.startTime_) / 1000.0; - return remainingTime; + return this.attributes_['remainingTime']; } /**