Commit a6674312 by Peter Fogg Committed by Jay Zoldak

Correctly seek in captions with non-1.0 speeds.

parent 71de34fc
...@@ -312,7 +312,7 @@ function () { ...@@ -312,7 +312,7 @@ function () {
var newIndex; var newIndex;
if (this.videoCaption.loaded) { 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); newIndex = this.videoCaption.search(time);
if (newIndex !== void 0 && this.videoCaption.currentIndex !== newIndex) { if (newIndex !== void 0 && this.videoCaption.currentIndex !== newIndex) {
...@@ -333,7 +333,7 @@ function () { ...@@ -333,7 +333,7 @@ function () {
var time; var time;
event.preventDefault(); 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}); this.trigger('videoPlayer.onCaptionSeek', {'type': 'onCaptionSeek', 'time': time});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment