mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
fix(video): preserve transcript seek timestamps
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user