From 522cb8b48c15abd82512f38cd97fda3bffe20e3f Mon Sep 17 00:00:00 2001 From: Shiwen Cheng Date: Fri, 27 Sep 2013 21:52:54 +0800 Subject: [PATCH] fix the video caption lag issue --- common/lib/xmodule/xmodule/js/src/video/09_video_caption.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/video/09_video_caption.js b/common/lib/xmodule/xmodule/js/src/video/09_video_caption.js index ff5455c70c..a78e08d648 100644 --- a/common/lib/xmodule/xmodule/js/src/video/09_video_caption.js +++ b/common/lib/xmodule/xmodule/js/src/video/09_video_caption.js @@ -500,11 +500,11 @@ function () { // Total play time changes with speed change. Also there is // a 250 ms delay we have to take into account. time = Math.round( - Time.convert(time, this.speed, '1.0') * 1000 + 150 + Time.convert(time, this.speed, '1.0') * 1000 + 100 ); } else { // Total play time remains constant when speed changes. - time = Math.round(parseInt(time, 10) * 1000 + 150); + time = Math.round(time * 1000 + 100); } newIndex = this.videoCaption.search(time);