mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
sub timing adjust
This commit is contained in:
parent
362000d6df
commit
46b0ed44bd
2 changed files with 2 additions and 2 deletions
|
|
@ -2857,7 +2857,7 @@ const AndroidVideoPlayer: React.FC = () => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
const adjustedTime = currentTime + (subtitleOffsetSec || 0);
|
||||
const adjustedTime = currentTime + (subtitleOffsetSec || 0) - 0.2;
|
||||
const currentCue = customSubtitles.find(cue =>
|
||||
adjustedTime >= cue.start && adjustedTime <= cue.end
|
||||
);
|
||||
|
|
|
|||
|
|
@ -2176,7 +2176,7 @@ const KSPlayerCore: React.FC = () => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
const adjustedTime = currentTime + (subtitleOffsetSec || 0);
|
||||
const adjustedTime = currentTime + (subtitleOffsetSec || 0) - 0.2;
|
||||
const currentCue = customSubtitles.find(cue =>
|
||||
adjustedTime >= cue.start && adjustedTime <= cue.end
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue