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)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user