From a66743128aa5fccf19b33a3d3da62e4a60cd1a76 Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Thu, 15 Aug 2013 17:24:03 -0400 Subject: [PATCH] Correctly seek in captions with non-1.0 speeds. --- 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 e8a30f6e9c..5ec111219a 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 @@ -312,7 +312,7 @@ function () { var newIndex; if (this.videoCaption.loaded) { - time = Math.round(Time.convert(time, this.speed, '1.0') * 1000 + 250); + time = Math.round(parseInt(time, 10) * 1000); newIndex = this.videoCaption.search(time); if (newIndex !== void 0 && this.videoCaption.currentIndex !== newIndex) { @@ -333,7 +333,7 @@ function () { var time; event.preventDefault(); - time = Math.round(Time.convert($(event.target).data('start'), '1.0', this.speed) / 1000); + time = parseInt($(event.target).data('start'), 10)/1000; this.trigger('videoPlayer.onCaptionSeek', {'type': 'onCaptionSeek', 'time': time}); }