Commit 522cb8b4 by Shiwen Cheng

fix the video caption lag issue

parent 77f3e4f9
...@@ -500,11 +500,11 @@ function () { ...@@ -500,11 +500,11 @@ function () {
// Total play time changes with speed change. Also there is // Total play time changes with speed change. Also there is
// a 250 ms delay we have to take into account. // a 250 ms delay we have to take into account.
time = Math.round( time = Math.round(
Time.convert(time, this.speed, '1.0') * 1000 + 150 Time.convert(time, this.speed, '1.0') * 1000 + 100
); );
} else { } else {
// Total play time remains constant when speed changes. // 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); newIndex = this.videoCaption.search(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