fix: full file playback resets all state to play to end of file

- Clear all marks (not just face marks)
- Reset playMode to 'continuous' to disable trace/segment limits
- Reset currentTraceIdx and currentSegmentIdx to 0
- Reset seekFrame to 0
- This ensures full file plays from start to end without restrictions
This commit is contained in:
2026-10-21 01:47:20 +08:00
parent 3b2c7c65ae
commit 38260a4c61

View File

@@ -1376,7 +1376,10 @@ function formatTime(sec: number): string {
async function playFullFile() {
videoLoading.value = true
videoError.value = ''
marks.value = marks.value.filter(m => m.source !== 'face')
marks.value = []
playMode.value = 'continuous'
currentTraceIdx.value = 0
currentSegmentIdx.value = 0
try {
const data = await apiCall('get_video_stream', {
uuid: props.fileUuid,
@@ -1393,6 +1396,7 @@ async function playFullFile() {
videoSrc.value = URL.createObjectURL(blob)
}
frameOffset.value = 0
seekFrame.value = 0
await nextTick()
videoEl.value?.load()
} catch (e: any) {