fix(video): preserve transcript seek timestamps

This commit is contained in:
yiling
2026-12-03 15:25:28 +08:00
parent 3952928b88
commit 5daa2a8f92
9 changed files with 262 additions and 44 deletions
@@ -8,7 +8,9 @@ export function createTranscriptTimeline(segments: TranscriptSegment[]) {
return { segment, latestEndMs }
})
return (timeMs: number): string | undefined => {
return (playbackTimeMs: number): string | undefined => {
// Remove floating-point noise around millisecond boundaries while keeping microsecond precision.
const timeMs = Math.round(playbackTimeMs * 1000) / 1000
let first = 0
let last = timeline.length
while (first < last) {