sub timing adjust

This commit is contained in:
tapframe 2025-10-12 12:05:22 +05:30
parent 362000d6df
commit 46b0ed44bd
2 changed files with 2 additions and 2 deletions

View file

@ -2857,7 +2857,7 @@ const AndroidVideoPlayer: React.FC = () => {
} }
return; return;
} }
const adjustedTime = currentTime + (subtitleOffsetSec || 0); const adjustedTime = currentTime + (subtitleOffsetSec || 0) - 0.2;
const currentCue = customSubtitles.find(cue => const currentCue = customSubtitles.find(cue =>
adjustedTime >= cue.start && adjustedTime <= cue.end adjustedTime >= cue.start && adjustedTime <= cue.end
); );

View file

@ -2176,7 +2176,7 @@ const KSPlayerCore: React.FC = () => {
} }
return; return;
} }
const adjustedTime = currentTime + (subtitleOffsetSec || 0); const adjustedTime = currentTime + (subtitleOffsetSec || 0) - 0.2;
const currentCue = customSubtitles.find(cue => const currentCue = customSubtitles.find(cue =>
adjustedTime >= cue.start && adjustedTime <= cue.end adjustedTime >= cue.start && adjustedTime <= cue.end
); );