Skip to content
Snippets Groups Projects
Commit 522cb8b4 authored by Shiwen Cheng's avatar Shiwen Cheng
Browse files

fix the video caption lag issue

parent 77f3e4f9
Branches
Tags
No related merge requests found
......@@ -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);
......
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