Compare commits

...

2 Commits

Author SHA1 Message Date
ab1399b853 fix: show frame and time in video titles (frame primary, time auxiliary)
Format: F123-F456 (5.1s-18.9s)
- Frame range is primary (left)
- Time range is auxiliary (right in parentheses)
2026-07-24 22:57:41 +08:00
717e2deb6a fix: remove hardcoded frame range from LibraryView title
When playing full video, only show filename.
Don't show F0-F99999 which is misleading.
2026-07-24 22:56:04 +08:00
3 changed files with 4 additions and 4 deletions

View File

@@ -842,7 +842,7 @@ function toggleSelect(f: any) {
}
function playVideo(f: any) {
currentVideo.value = { fileUuid: f.file_uuid, startFrame: 0, endFrame: 99999, title: `F0-F99999 (${f.file_name})` }
currentVideo.value = { fileUuid: f.file_uuid, startFrame: 0, endFrame: 99999, title: f.file_name }
playing.value = true
}

View File

@@ -1122,7 +1122,7 @@ function playTrace(t: any) {
fileUuid: t.file_uuid,
startFrame: t.first_frame || 0,
endFrame: t.last_frame || (t.first_frame || 0) + 30,
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (Trace ${t.trace_id})`
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (${formatTime(t.first_sec || 0)}-${formatTime(t.last_sec || 0)})`
}
playing.value = true
}

View File

@@ -737,7 +737,7 @@ function playAllSegments() {
startFrame: t.first_frame || 0,
endFrame: t.last_frame || (t.first_frame || 0) + 30,
traceIdx: 0,
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (${person.value?.name})`,
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (${formatTime(t.first_sec || 0)}-${formatTime(t.last_sec || 0)})`,
}
playing.value = true
}
@@ -750,7 +750,7 @@ function playMerged(m: any) {
startFrame: t.first_frame || 0,
endFrame: t.last_frame || (t.first_frame || 0) + 30,
traceIdx: m._startIdx,
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (${person.value?.name})`,
title: `F${t.first_frame || 0}-F${t.last_frame || 0} (${formatTime(t.first_sec || 0)}-${formatTime(t.last_sec || 0)})`,
}
playing.value = true
}